shopware / paas

PaaS template based on production template
MIT License
10 stars 14 forks source link

change fastly deliver config to prevent the client from caching more efficiently #15

Closed dimiceli closed 1 year ago

dimiceli commented 1 year ago

The max-age=0 cache control directive is not enough from prevent the client caching. This does not prevent the client from reserving the cached page with the browser's previous button. It is better to use the no-cache directive in this case (or no-store if we also dont want the proxy to cache).

We have a problem with this on a shopware project when we add a product to the cart in ajax then we are going to another page and then back with the browser previous button. The basket appear empty.

shyim commented 1 year ago

Thanks!