A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Cache control in IE
Joined: Jul 13, 2004
Jul 13, 2004 10:40:00
I'm having a problem having IE not cache jsp pages. I'm using this 4 lines at the begining of my jsp but IE still caches the page.
response.setHeader("Cache-Control","no-cache"); //http 1.0
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");//http 1.1
response.setHeader("Expires", "01 Apr 1995 01:10:10 GMT");
I really appreciate your sugestions.
Joined: Oct 12, 2000
Jul 14, 2004 00:43:00
most likely it's a proxy server somewhere that does the caching...
IE is pretty decent, many proxies are not.
You can try response.setDateHeader("Expires", 0); and see if that works.
It is sorta covered in the
JavaRanch Style Guide
subject: Cache control in IE
refresh resubmits form
Internet Explorer is unable to open Office documents from an SSL Web site
response.setHeader("Refresh", "10; URL=http:\\ www.javaranch.com");
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014