Hello Jack!

JX> I am using the following code to enforce reloading content of a page each
JX> time it is requested.
JX> response.setHeader("Cache-Control", "no-cache");
JX> response.setDateHeader("Expires", 0);

Shouldn't it be "Expires", "-1"?

JX> response.setHeader("Pragma", "No-cache");

JX> However, it begets another problem: the browser reloads all the graphic
JX> images on the page each time, which takes awful a lot of bandwidth for my
JX> pages        .

Hmm, what browser?
Do you serve your graphics by servlets or normally?
What servlet container, web server (if any)?

JX> Any one has any idea of prevent the graphics from reloading while keeping
JX> the content up-to-date?

JX> Thanks.
JX> Jack


- Anton
[EMAIL PROTECTED]
[EMAIL PROTECTED]

===========================================================================
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