wodby / varnish

Varnish docker container image
https://wodby.com/stacks/varnish
MIT License
59 stars 29 forks source link

Support of WooCommerce cart cookies #11

Closed pprishchepa closed 5 years ago

pprishchepa commented 5 years ago

WooCommerce may use 3 cookies for anonymous users:

We need a way to avoid caching for such cookies and probably for some paths:

Actually, I'm not sure about paths because cookies exclusion should be enough but I see a few examples of WooCommerce integration with both cookies and paths exclusion. It seems it should be tested additionally.

I suggest to implement a generic way to exclude caching for cookies and paths.

revitteth commented 5 years ago

Is there an estimate on when this may be completed/released?

csandanov commented 5 years ago

Added support for woocommerce cookies, exclude for specific URLs makes sense because they should normally set Cache-control: no-cache header that respected by Varnish.