Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cache control in IE

 
zeberga Amerga
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I'm having a problem having IE not cache jsp pages. I'm using this 4 lines at the begining of my jsp but IE still caches the page.

response.setHeader("Cache-Control","no-cache"); //http 1.0
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");//http 1.1
response.setHeader("Pragma","no-cache");
response.setHeader("Expires", "01 Apr 1995 01:10:10 GMT");

I really appreciate your sugestions.

Thanks
Zeb
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
most likely it's a proxy server somewhere that does the caching...
IE is pretty decent, many proxies are not.

You can try response.setDateHeader("Expires", 0); and see if that works.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic