My situation is as follows:
- You add a Product to your cart.
- If you have not added an ExtraProduct, you get to see a page to add an ExtraProduct.
- If you have added it and end up on the ExtraProductPage I redirect you one step forward.
The issue I’m having is that if a user presses ‘back’ in the browser, it loads the page from buffer (or at least it does in Firefox). Because the browser loads it from cache, my PHP never gets fired, so no redirect (which I do want).
The headers for this page:
Cache-Control max-age=0, must-revalidate, private, s-maxage=-1
Expires Wed, 15 Jan 2020 12:44:52 GMT (timestamp of the request)
Yet, it keeps buffering. I want to turn the buffering off for this specific route only. Any suggestions?
Source: Symfony Questions
Was this helpful?
0 / 0