Full page reload on Post/Redirect/Get ignoring cache control
- by Kristof Neirynck
I have a page that loads a lot of images, css and javascript. I've added a far future Expires header and set Cache-Control to public on these external dependencies so they should be cached. But every time I do a Post/Redirect/Get chrome tries to load these again. This behavior is very similar to reloading the page. I've added ETags and handle the If-None-Match header which helps a bit, but it still generates too many useless requests.
How do I tell chrome and safari to get the files from cache?
chrome NOK
safari NOK
firefox OK
ie OK
Also see Full page reload on Post/Redirect/Get ignoring cache control on the google support forum.