We are using struts 1.2.4 in our application.
The application currently allows caching of secure(https) pages (cache-control is not enforced). I want to change that behaviour and add cache-control:no-cache to all the responses.
Does struts provide some framework for setting cache policy globally?
How can i do this?
UPDATE:
The below answer from Bon Espresso worked. I had to add
“Cache-Control”,”no-cache, no-store, must-revalidate”
and Date header to the filter.
Use Filter, configure your filter in web.xml
And your filter class