Improved our steps to avoid caching of responses. It now seems that

both Mozilla and IE actually do not cache stuff that has res.cache == false.
This commit is contained in:
hns 2003-03-03 11:45:52 +00:00
parent 8112e2a40c
commit 99e764a7b0

View file

@ -241,13 +241,11 @@ public abstract class AbstractServletClient extends HttpServlet {
if (!hopres.cache || ! caching) {
// Disable caching of response.
if (isOneDotOne (req.getProtocol ())) {
// for HTTP 1.0
res.setDateHeader ("Expires", System.currentTimeMillis ()-10000);
res.setHeader ("Pragma", "no-cache");
} else {
// for HTTP 1.1
res.setHeader ("Cache-Control", "no-cache");
}
res.setHeader ("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0");
}
if ( hopres.realm!=null )
res.setHeader( "WWW-Authenticate", "Basic realm=\"" + hopres.realm + "\"" );