johnsmith153 Posted May 26, 2013 Share Posted May 26, 2013 (edited) I'm using Symfony2's reverse proxy cache (all default settings etc.), so I want to integrate it with that, but even non-Symfony users will be able to help. My example below changes certain headers (so not PHP related), but it may need to be changes in PHP or Symfony2 code that gets the actual result. Any help at all may help to solve what has become a very difficult problem. The site in question allows for a 'basic' site view by scaling down images and removing JavaScript. As the content is the same I have used the same URL, but of course caching is an issue. I need to be able to cache them separately (or just ensure the cache is cleared). I have tried changing the Vary header which normally I have set to: Vary: Accept-Encoding ..and have set it to either: Vary: Accept-Encoding, basic ..or: Vary: Accept-Encoding, normal That actually works brilliant in Chrome on Mac, but Safari ignores the extra part of the Vary header. I stopped checking other browsers at this point. Any advice, either caching related or Symfony2 related? Edited May 26, 2013 by johnsmith153 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.