wood burning stoves 2.0*
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
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