Re: back button and CACHE

Unknown <[email protected]> Sat, 23 Oct 2004 02:28:30 +0200
Newsgroups gmane.comp.mozilla.devel.prefs
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>

Marcelo Elias Del Valle wrote:
> Hello,
> 
>     I am having a problem with cache using mozilla 7.2 . I am a java 
> developer and I have a web site made with use of JSP and servlets. In 
> this site I have a JSP page with a form, which sends data to a servlet 
> by POST.
>     The problem is: I enter on this page, post the data and the result 
> is shown ok. If i enter and post data again, it shows again the right 
> results. However, if I post the data, click on the back button, change 
> the parameters which will be send by the form and submit again, it shows 
> me the result of the last query, stored in cache.

I can just make a suggestion: Install the "Live Http Headers" extension 
(from http://extensionroom.mozdev.org/ ) so that you can see exactly the 
caching headers sent by the server.
This way you will be able to see if this is a problem with mozilla or 
with your server.



>     It is a serious problem, because it doesn´t happens on IE and my 
> customer depends on this to approve use o linux/mozilla from users. I 
> tried to change the way mozilla uses cache saying to it to not use any 
> cache, I used the following meta tags to do this:
>     <meta http-equiv="expires" content="0">
>     <meta http-equiv="Cache-Control" content="no-cache">
>     It doesn´t work, when I look at the page information, it shows me 
> disk cache as origin.
>     Any tip?
>     Any help will be very welcome.
> 
> Thanks in advance,
> 
> Marcelo.