Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

back button caching problem in firefox browser

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic