Skip to content

Commit

Permalink
Merge pull request #91 from magento-extensibility/MAGETWO-44448-varni…
Browse files Browse the repository at this point in the history
…sh-bottle-neck

[Extensibility] Magetwo 44448 varnish bottle neck
  • Loading branch information
He, Joan(johe) committed Nov 2, 2015
2 parents fc7a956 + 9d93e76 commit f578e54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/code/Magento/PageCache/etc/varnish3.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ sub vcl_recv {
if (req.request != "GET" && req.request != "HEAD") {
return (pass);
}


# Bypass shopping cart and checkout requests
if (req.url ~ "/checkout") {
return (pass);
}

# normalize url in case of leading HTTP scheme and domain
set req.url = regsub(req.url, "^http[s]?://", "");

Expand Down
5 changes: 5 additions & 0 deletions app/code/Magento/PageCache/etc/varnish4.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ sub vcl_recv {
return (pass);
}

# Bypass shopping cart and checkout requests
if (req.url ~ "/checkout") {
return (pass);
}

# normalize url in case of leading HTTP scheme and domain
set req.url = regsub(req.url, "^http[s]?://", "");

Expand Down

0 comments on commit f578e54

Please sign in to comment.