Skip to content

Commit

Permalink
ENGCOM-7761: #24353 Fix Varnish 6 Too many restarts issue #28137
Browse files Browse the repository at this point in the history
  • Loading branch information
slavvka committed Aug 5, 2020
2 parents c63a78a + b268ebb commit 1968fcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/PageCache/etc/varnish6.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ acl purge {
}

sub vcl_recv {
if (req.restarts > 0) {
set req.hash_always_miss = true;
}

if (req.method == "PURGE") {
if (client.ip !~ purge) {
return (synth(405, "Method not allowed"));
Expand Down

0 comments on commit 1968fcf

Please sign in to comment.