On Tue, 13 Mar 2001, Zsolt Koppany wrote:

> I do it from a JSP and not from a servlet and the page look like:
>
> <%response.setHeader("Cache-Control",
> "no-cache");response.setHeader("Pragma", "no-cache");%>

OK,

Try telnetting to your box and issue the HTTP command:

GET /<root/relative/path/to/file> HTTP/1.0

(two returns)

Then look at the header (which will be at the top and may scroll off the
screen). You can also try the HEAD command instead of GET.

You might also try HTTP/1.1 instead of 1.0 and see what the responses are.
If you get headers like the ones you set ("Pragma: no-cache", etc.) then
the problem is with the browser not honoring them. In this case try the
META versions instead. If you do not get those headers than your JSP
container is not setting the headers for some reason.

When you telnet look also for other headers like max-age and expires. You
may have your server configured to set these for the file. The browser may
be using these instead. Turn off Expires for the directory or location in
question.

Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
----------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to