Hi All.............

For caching I am using the following code and am putting in a common JSP
which
could be included in different JSPs.

response.setHeader("Cache-Control","no-cache"); //HTTP 1.1,
response.setHeader("Pragma","no-cache"); //HTTP 1.0,
response.setDateHeader ("Expires", 0); //prevents caching at the proxy
server

If I use <%@ include page file="sample.jsp"%>
the purpose does not get solved and caching of the pages occurs but when I
use
jsp:include directive it does work properly.

What is the difference and why is it happening.......

Thanks,
-ShriKant

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to