File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

back button caching problem in firefox browser

Gerard de Vos

Joined: Mar 29, 2006
Posts: 1

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,


Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

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

"Despite efforts to prohibit caching some web browsers like Firefox just do not care."

[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="" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="" target="_blank" rel="nofollow">Check it here.</a><br /><a href="" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
I agree. Here's the link:
subject: back button caching problem in firefox browser
It's not a secret anymore!