• Post Reply Bookmark Topic Watch Topic
  • New Topic

Web proxy caching jsp pages  RSS feed

 
Dave Casey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not want web proxies to cache my jsp pages. I have the following code in my jps pages: -
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires", -1);
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate, s-maxage=0");
response.setHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Expires", "Thu, 01 Dec 1994 16:00:00 GMT");
This code does not work. Does anyone know if there is any other code I should be putting in my jsp pages.
p.s. it is people trying to access my site through a web proxy that seems to be caching the pages.
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave
Instead of starting anew thread with the same question, if you need to change or add to an exisitng post you can do that by clicking on the edit icon above your post.
 
Jason Hunt
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I encounter the same problem, I add those setHeader lines into my jsp page, it work fine for my local Weblogic server, but it won't work for the weblogic server running on solaris, I don't know what can I do :-((
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!