I'm trying to config iPlanet not to cache, not my code. Do you know how to
get iPlanet to do the same thing?
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael Laufer
Sent: Wednesday, August 23, 2000 5:38 PM
To: [EMAIL PROTECTED]
Subject: Re: iPlanet Servlet Caching
Hi Kenneth,
try:
1) res.setHeader("Pragma", "no-cache");
for HTTP/1.0 headers
2) res.setHeader("Cache-Control", "no-cache");
for HTTP/1.1 headers
3) res.setHeader("Expires",0);
thats's only necessary if the browsers still cache your response header.
in your doGet(HttpServletRequest req, HttpServletResponse res) or
do Post(HttpServletRequest req, HttpServletResponse res) methods.
I guess if you code the three lines in your code it will work.
Hope that helps you,
Michel
Kenneth McCord schrieb:
> I am trying to disable servlet caching in iPlanet Web Server 4.0 SP2 or
> force the server to reload the servlet every time the page is loaded. Can
> anyone help?
>
> Thanks,
>
> Kenneth A. McCord
>
> Email: [EMAIL PROTECTED]
> Work: (703) 288-8232 X4641
> Cell: (703) 338-9619
> MSN IM: [EMAIL PROTECTED]
> AOL: joeymccord
> Yahoo: dj_chicken_butt
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets