This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Browser Caching  RSS feed

 
Arun Somasundaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This is Arun.I browsed through certain JSP and Servlets.I am using Tomcat Server and IE as browser.Then I stopped the Tomact instance.Again I browsed through the same servlets and jsp's I can see those pages displayed in the browser.

Does this means the browser caches the pages it renders to the user? If so how many pages does a browser can cache and how long?

[ August 02, 2006: Message edited by: Arun Somasundaram ]
[ August 02, 2006: Message edited by: Bear Bibeault ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on the browser. In IE, you can change the settings by using the Extras -> Internet Options menu. In the "General" tab you'll see a few options dealing with "Temporary Internet Files"; those control the cache. (I don't have an English-language IE in front of me, so the names of the menus might be a bit different in yours.)
 
Arun Somasundaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,Thanks Mr.Ulf Dittmer for your reply.

Is there any other possiblities? any one who knows about this please reply.
 
Arun Somasundaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr.Ulf Dittmer thanks again.I got it.First the Internet options should be opened and then the settings button in the Temporary Internet Files has to be clicked.There the 1st option(Every Visit to the page) under check for newer versions of stored pages has to be selected.Then every time the request is sent to the server and the response in sent by the server. If the last option is selected i.e(Never) then the request is not sent to the server but the browser displays the cached page(page stored in hard disk with the respective URL) which it has in the temporary internet files folder.This raises problem when it comes to dynamic pages like servlets and jsp's.The updated page is not shown.There is a chance of the user being cheated by the browser.If the user wants to see the updated page he must refresh the respective page.If the first option is selected then the overhead can be avoided.

"The above explanation is given to Internet Explorer"
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For dynamic pages there are some headers and meta tags you can use to suggest that the browser not cache your pages.

Search this and the JSP forums with keywords "no-cache", "pragma" and you will find plenty of dicussions on this.
 
Arun Somasundaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben for your suggesstion!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also a wiki page about the cache headers: NoCacheHeaders
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
There's also a wiki page about the cache headers: NoCacheHeaders


Nice.
I just added a link to that one in the Servlets FAQ page.
 
Arun Somasundaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,just now I went through the link given by you.It's good.It's really worth man.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!