Skip to content

Commit

Permalink
improvements to varnish 6 container
Browse files Browse the repository at this point in the history
  • Loading branch information
gaiterjones committed Aug 26, 2020
1 parent b2b429e commit 41fea9a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions magento2/varnish/varnish6.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@ acl purge {

sub vcl_recv {

# Bypass scale manager page
if (req.url ~ "/scale-manager") {
return (pass);
}
#CUSTOM VCL START

# Bypass Magento2FacebookStoreFront storefront
if (req.url ~ "/Magento2FacebookStoreFront") {
return (pass);
}
# https://github.com/magento/magento2/issues/24353
# https://github.com/magento/magento2/issues/3897
if (req.restarts > 0) { set req.hash_always_miss = true; }

# Bypass scale manager page
if (req.url ~ "/scale-manager") {
return (pass);
}

#CUSTOM VCL END

if (req.method == "PURGE") {
if (client.ip !~ purge) {
Expand Down

0 comments on commit 41fea9a

Please sign in to comment.