How do I disable caching in my application? I have a struts app running on apache tomcat. I am changing some images but still viewing the old ones. Manually refreshing the page displays new images. I am using following statements in my jsp files:
<%
response.setHeader("Expire
s", "-1");
response.setHeader("Cache-
Control", "no-store");
response.setHeader("Pragma
", "no-cache");
%>
I have tried all combinations of setting headers as well as HTTP META tags (as suggested on various sites) but nothing works. Also tried modifying server.xml of tomcat. No luck.
Please help.
Mukta.
Start Free Trial