Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proxy Cache

Status
Not open for further replies.

ramkumars

Programmer
Aug 2, 2001
31
IN
hi,

i want to turn off the Proxy from cacheing any of my JSP's. how can i achieve this?

Thanks,
Ram
 
To prevent caching you can do the following in your JSP or Servlet:
Code:
response.addHeader("Pragma","No-cache");
response.addHeader("Cache-Control,"no-cache");
response.addDateHeader("Expires",1);
The Pragma header is specifically targeted to Proxy Servers. Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top