Closed mbohal closed 8 years ago
Does not make sense to me. Symfony alreadyd puts a "Cache-Control: no-cache" header if no specific "caching" headers are set.
I disagree. The Symfony Reverse Proxy Cache caches the redirects. Im using Symfony 2.7 with the prefix startegy.
How to reproduce:
Expected behavior in step number 7: Redirect to the language selected in step 6 and headers should include "Cache-Control:max-age=0, must-revalidate, no-store, public, s-maxage=0"
The pull request fixes this.
Then the issue is in the SF Reverse Proxy, not here. This is the output on the prefix strategy when there is no proxy:
Cache-Control: no-cache
Which is the expected one.
When I get redirected to a detected language I do not want the response to be cached. The present state correctly redirects for the first user, but the other users get the cached response.