jsp caching
843840Jun 25 2008 — edited Jun 26 2008Hiya, hopefully someone will be able to help me with this.
first off how do i remove caching from jboss/tomcat? i have tried
response.setHeader("Pragma", "no-cache");
response.setHeader("Pragma", "no-store");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader ("Expires", 0);
on the jsp pages but the pages are still being cache.. neither am i using a proxy
Is there any configuaration somewhere to stop all caching?
secondly, if i use a iframe to call to its parent frame, it gives me an http 404 error when trying to load the iframe. seem like the resource is still not released.
i have tried
<iframe src="deleteEmailIF.jsp?nocache='<% out.println(System.currentTimeMillis());%>'" name..............
hopefully to load the iframe fresh but it doensn't seem to work.. is there anyway to force it to reload a fresh page everytime its called? or to delete the callign iframe?
maybe i should have used <div> but a solution here would be greatly appreciated.