|
When implementing this, check
I don't think anything you do to the Cache-Control header is going to fully address the issue.
Yes,, it will keep the form from becoming unpopulated. However, won't you still have the problem of it asking for permission to re-post? Or will it simply display the cached result on navigating the history back to a POST? I haven't tried every combination of browser and Cache-Control, and don't have time to set up the experiments myself, but I do know a redirect works wonders, though at the cost of an extra round-trip. Removing no-store from the cache-control header allows the browser to make the decision not to re-post the form at all. One of our developers wrote an excellent blog post
Ah, here's the important point from RFC 2616, which makes this legitimate:
Now, that "if the entity is still in storage" part would seem to give browsers a little wiggle room, but the intent is clear. Of course, this is moot if the browsers don't implement it. I take it you've verified they do. Always good to learn something new! (Even about something old, like HTTP/1.1 caching!) Thanks! |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I think this is also fixed by removing the "no-store" from the Cache-Control header when serving pages in JIRA.
We need to look into this anyway.
Chat to Chris Owen about removing the "no-store" from the Cache-Control header.