Hi All,
I am unable to restrict the browser from not to caching my webpage at the client side. I am getting this problem only when i use tiles with struts. in case regular jsp files it is working fine. I am using the following code in my jsp files to restrict client side caching.
<
meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Pragma-directive" content="no-cache" /> <meta http-equiv="Cache-Directive" content="no-cache" /> I also tried with the other way
<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader(
"Pragma","no-cache"); //HTTP 1.0 response.setDateHeader (
"Expires", 0); //prevents caching at the proxy server %> Both these code snippets are working incase of a simple jsp file. But in case of Struts tiles , it the meta tags are not even visible in the client side generated web page.
Can anybody triggerout that where might be I am making mistake ?
Thanks in Advance :)
Santhosh.
Santhosh.G
me@santhoshgandhe.
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
.
__,_._,___
No comments:
Post a Comment