I use Symfony2's reverse proxy by default, and I need to separate the caching of the same URL based on cookie settings.
The site allows the "basic" look of the site, reducing the number of images and removing JavaScript. Since the content is the same, I used the same URL, but of course the caching problem is the problem.
I need to be able to cache them separately (or just provide a clear cache).
I tried to change the Vary header, which I usually set:
Vary: Accept-Encoding
.. and installed it either:
Vary: Accept-Encoding, basic
.. or:
Vary: Accept-Encoding, normal
It really works brilliantly in Chrome on my Mac, but Safari ignores it. I stopped checking other browsers at this point.
What is the best way to do this?
source share