Forums Register Login

Setting header for cache

+Pie Number of slices to send: Send
Setting header for cache:
*************************
1: setHeader("Cache_Control","no-cache")
----------------------------------------
If I have set the header to response.setHeader("Cache_Control","no-cache") for Page1.htm
What does it mean ? When using explorer ,should this prevent the page from being placed in history ?
If the user after page1.htm goes to page2.htm should not the page1.htm be unavailable ?
2: Can a header be set to more then one value ?
-----------------------------------------------
Is this header valid ?
response.setHeader("Cache_Control","max-age=3600, must-revalidate");
3: cached for 10 minutes and then expiry
----------------------------------------
If I want a page to be cached for 10 minutes and then expiry, what's the correct way of doing that
in http 1.1 ? What should the headers look like ?

thanks in advance
Per
Time flies like an arrow. Fruit flies like a banana. Steve flies like a 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 663 times.
Similar Threads
javascript
how to refresh the jsp page when onload?
JCaptcha and Struts problem
How to load JSP dynamically using mapping.findForward()
Interview question at Cap Gemini.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:21:59.