aspose file tools*
The moose likes Servlets and the fly likes back button caching problem in firefox browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "back button caching problem in firefox browser" Watch "back button caching problem in firefox browser" New topic
Author

back button caching problem in firefox browser

Gerard de Vos
Greenhorn

Joined: Mar 29, 2006
Posts: 1
Hello,

In our project we have a problem concerning the behaviour of the firefox browser compared to the IE browser. They are all operating under the Windows platform.

We have looked on Google and on the Javaranch forums for a solution but we couldn't find one. Maybe someone can help.

In our code we use the following to solve caching problems for the Internet Explorer browser:

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);

This works fine indeed for Internet Explorer but not for the Firefox browser.

Can someone tell us how to solve this problem for Firefox.

Thanks a lot in advance,

Regards,

Gerard
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I'm not sure this is related to your problem but give it a shot.

Quoting:
"Despite efforts to prohibit caching some web browsers like Firefox just do not care."
http://www.theserverside.com/articles/article.tss?l=RedirectAfterPost


[My Blog]
All roads lead to JavaRanch
dema rogatkin
Ranch Hand

Joined: Oct 09, 2002
Posts: 294
"no-store" worked fine for me with FF 1.5. Try to add settings in HTML as
<meta ...>
I just tested with "no-store" on FF 1.5 and it worked. You may use some HTTP traffic monitoring tool just in case if your web container does something wrong with headers.


Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: back button caching problem in firefox browser