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.
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.