Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/varnish/vcl/varnish3.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ sub ez_purge {
}

if (req.http.X-Location-Id) {
ban( "obj.http.X-Location-Id ~ " + req.http.X-Location-Id);
ban( "obj.http.X-Location-Id ~ \b" + req.http.X-Location-Id + "\b");
if (client.ip ~ debuggers) {
set req.http.X-Debug = "Ban done for content connected to LocationId " + req.http.X-Location-Id;
}
Expand Down
2 changes: 1 addition & 1 deletion doc/varnish/vcl/varnish4.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ sub ez_purge {
}

if (req.http.X-Location-Id) {
ban("obj.http.X-Location-Id ~ " + req.http.X-Location-Id);
ban("obj.http.X-Location-Id ~ \b" + req.http.X-Location-Id) + "\b";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a typo, the + "\b" should be inside the parenthesis of the ban function.

if (client.ip ~ debuggers) {
set req.http.X-Debug = "Ban done for content connected to LocationId " + req.http.X-Location-Id;
}
Expand Down