File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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

 
Consider Paul's rocket mass heater.
 
subject: caching on Proxy Server: tried Cache-Control, Pragma, Expires
 
Similar Threads
invalidate session object in struts2
Question on cache control...
disable the back button in webapplication
pressing back button after logout shows loggedin contents
how to prevent caching in IE 6