• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I configure firefox not to cache the pages

 
nikita mishra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am developing web application . As Firefox caches pages the output page does not reflect the changes I made in the jsp pages. How can I configure firefox not to cache the pages so that it will retrieve only the new pages from the web server?
 
nikita mishra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> and <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> and also used about:config feature of firefox to disable cache but of no use.
 
Stephen McConnell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get the Firefox plugin/addon "Web Developer".... It allows you to disable cache for your browser (It's a MANDATORY plugin for any web developer 'cause it allows you to check out and control a ton of stuff going on in Firefox when you develop web pages.)


Stephen McConnell
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course, it will be some trick to get all users of the application to install that plugin as well.

In other words, don;t rely upon a browser setting. Set the response headers appropriately. See the FAQ on this issue.
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look on this post. http://www.coderanch.com/t/283182/JSP/java/prevent-caching
 
Stephen McConnell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bear

Ah

I was under the impression that he just wanted to not cache pages while he was developing them!!! My bad...

@tripathi

Thanks for the info on that one.... I've bookmarked it.

Stephen McConnell
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephen McConnell wrote:I was under the impression that he just wanted to not cache pages while he was developing them!

You're not crazy. I think that is what he asked. But, of course, it's the wrong question.
 
Stephen McConnell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bear

Yeah... I looked at some of the Firefox bugs and found an ongoing bug with it not recognizing the NO-CACHE meta tag. I was also thinking he may be caching his JSP's on the SERVER side... I had a problem like that once loonnnnnggg ago (with iPlanet, if I remember correctly).

Steve
 
nikita mishra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
Stephen McConnell wrote:I was under the impression that he just wanted to not cache pages while he was developing them!

You're not crazy. I think that is what he asked. But, of course, it's the wrong question.

@Bear Bibeault
I think this is how the question should be.
"How can I configure firefox not to cache the pages so that it will retrieve the pages only from the web server and not from the local cache?"

@shivendra tripathi

Tried that one too but of no use.

@Stephen McConnell
You got the question right. But the even after using the addon it still fetches the local cached page.
 
nikita mishra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded chrome just now! It too is returning me old page sometimes, while there is no chance of chrome having a cache of old page. I am using localhost and I am executing the application from Eclipse in the tomcat sever environment. Does that mean tomcat server is caching the pages?
 
nikita mishra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually What I am doing is generating some errors in the JSP page. The browser displays the error for the first request but after some more requests the browser is returning me the old page(ie the old page sent by the server). Is the tomcat webserver designed to behave like this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic