Hi i need to disable tomcat caching for a single page. i have gone through the ref,
Control server side caching by page (Tomcat)? & Java servlet how to disable caching of page
here the solution is i need to do this::
// Set standard HTTP/1.1 no-cache headers. response.setHeader("Cache-Control", "private, no-store, no-cache, must-revalidate");
// Set standard HTTP/1.0 no-cache header. response.setHeader("Pragma", "no-cache");
But i dont have any servlet class for that particular page. And the above code snipet i need to add to a servlet class i guess..Am i correct?? Is there any way to disable tomcate caching for a single page from a normal java file,,,??
Some more info about my technology and framework::
We have a framework called tapestry(3). We have a servlet class called ApplicationServlet. That combines a .jwc file(that contains nonstatic part) and html together to create a new html page. :)