Forums Register Login

setting No Cache for JSP

+Pie Number of slices to send: Send
Hi,
I am using the following statements so that the Browser does not cache the JSP pages.

response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");

In one perticular page I am using <object> tag and including a link to the PDF file with in this tag.

The contents for this PDF file are not being refreshed on each visit. In short the PDF file is stored in temporary internet files.

Any advice would be appreciated on how to prevent the browser from storing the PDF file.

Thanks,
Harini
+Pie Number of slices to send: Send
Caching control on a page will have no effect upon pages or other resources linked to from that page.
+Pie Number of slices to send: Send
they're also not guaranteed to work even on the page they're set on. Many proxies silently ignore such directives and will cache them anyway.
I'm gonna teach you a lesson! Start by looking at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1918 times.
Similar Threads
Caching Problem with JNLP
Null pointer
logout issue
Response as PDF
I am getting old file from the server
Interview question at Cap Gemini.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:23:40.