This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes caching on Proxy Server: tried Cache-Control, Pragma, Expires Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "caching on Proxy Server: tried Cache-Control, Pragma, Expires" Watch "caching on Proxy Server: tried Cache-Control, Pragma, Expires" New topic
Author

caching on Proxy Server: tried Cache-Control, Pragma, Expires

Rahul Jampani
Greenhorn

Joined: Jan 11, 2011
Posts: 13
Hello

We are getting issues with pages being cached, this issue is new with our new built.

We have the following on our JSP template:

<%
// This is required to force no caching in IE
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", -1);
%>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1">

I do get page with cache if I press ctrl+F5

We have the following:
JSP
Struts
Dojo
Oracle

Our Proxy server is IBM Edge..

Thanks

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: caching on Proxy Server: tried Cache-Control, Pragma, Expires
 
Similar Threads
how to prevent caching in IE 6
invalidate session object in struts2
Question on cache control...
disable the back button in webapplication
pressing back button after logout shows loggedin contents