I’ve got a sendRedirect in a snippet that works fine in IE and FF, but not in 0pera.
The snippet redirects to a login page if user is not a logged-in web user. Once the user is logged in the site redirects. In Opera however the page stays cached, so I want to send a header to tell it not to cache. Is there a way of doing that?
This is only a problem with Opera as far as I’ve noticed, but then I haven’t tried all other browsers, and since it is an issue on one, it might be on others too.
I solved it using
header("Cache-Control: no-store, no-cache, must-revalidate"); before the redirect call. But I will need to put it in other pages too, pretty much any non-static page.
Anyhow, I thought I’d post this, although Opera is not the top browser choice for many, there are quite a few users, so check your pages, or if you have any other recommendations, please let me know.
Maybe modifying the code that handles caching to include something like this might work.