Skip to content
Snippets Groups Projects
Commit b651ce6e authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#163 Replace Purge-Cache-Tags with Cache-Tags

parent ea3e0977
No related branches found
No related tags found
No related merge requests found
......@@ -75,13 +75,13 @@ sub vcl_recv {
return (purge);
}
# Logic for the ban, using the Purge-Cache-Tags header. For more info
# Logic for the ban, using the Cache-Tags header. For more info
# see https://github.com/geerlingguy/drupal-vm/issues/397.
if (req.http.Purge-Cache-Tags) {
ban("obj.http.Purge-Cache-Tags ~ " + req.http.Purge-Cache-Tags);
if (req.http.Cache-Tags) {
ban("obj.http.Cache-Tags ~ " + req.http.Cache-Tags);
}
else {
return (synth(403, "Purge-Cache-Tags header missing."));
return (synth(403, "Cache-Tags header missing."));
}
# Throw a synthetic page so the request won't go to the backend.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment