This week's book giveaway is in the Object Relational Mapping forum. We're giving away four copies of Pro JPA 2: Mastering the Java Persistence API and have Mike Keith and Merrick Schincariol on-line! See this thread for details.
Hi Friends, I'm struck up with one issue in caching the web page in client machine's temporary internet files. I have designed a secured web application. I used
<% response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); %> for not storing the web page in client machine. Now only some of the pages that doesn't needs the security needs to be cached in the client machines temporary internet files. For that i used the code as <% response.setHeader("Cache-Control","public"); response.setHeader("Pragma","public"); response.setDateHeader ("Expires", 0); %> Still i'm unable to store. Please help me solve this. Thanks in Advance. Quick help would be greatly appreciated.
Originally posted by Rajendiran R. prakash: Hi friend, Thanks for the quick reply. But it doesn't work. Is there any other idea.
Thanks & Regards Prakash...
Maybe you could give us a little more to work with than "it doesn't work". How do you know it doesn't work? What did you do to test it? What were you expecting? What did you see?
I, for one, wouldn't spend very much effort to help you after seeing how quickly you dismissed David's response.
[ March 13, 2008: Message edited by: Ben Souther ] [ March 31, 2008: Message edited by: Ben Souther ]
Hi Ben, When i used the above code with some slight alterations, it works for my system(Stand alone). But when i tried with another system with this systems url it doesn't works. Help me please.... Sorry if it hurts David......... Regards, Prakash.
Sorry for that. It really hurts some one who help others. It works perfectly for me. I used the david's code with some alterations. Now i changed my code according to David's code. While i use that exactly the same way, it works perfectly. Also I had some browser issue. Once i reset it to default settings and tried it works fine.
This is an important issue with respect to caching or not caching data on the client. Anything you do is just a request to the client and they are free to do what they want. That is, you can ask them to cache the code and they may decide not to, or you may ask them to cache the data and they may decide not to.