Varnish configuration not working in Woocommerce
-
I’ve followed the steps here and read through other forums/guides I found online. The only reason I’m starting a new topic instead of adding to existing topics on this same question is because I have already tried everything in other topics with no luck.
I fixed the issue in the second clause and placed the escape character before the “?”.
Nothing I do seems to work–the cart, checkout, and my account pages do not behave the way they are supposed to. Here is what I have in my varnish default.vcl file:
# Drop any cookies sent to WordPress. sub vcl_recv { if (!(req.url ~ "wp-(login|admin)")) { unset req.http.cookie; } if (req.url ~ "^/(cart|my-account|checkout|addons)") { return (pass); } if (req.url ~ "\?add-to-cart=" ) { return (pass); } }
What am I missing?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Varnish configuration not working in Woocommerce’ is closed to new replies.