Package io.camunda.optimize.tomcat
Class NoCachingFilter
java.lang.Object
io.camunda.optimize.tomcat.NoCachingFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
After an upgrade of Optimize the browser might load old resources from the browser cache. This
filter adds the no store cookie to the response to prevent those caching issues after the
upgrade.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NoCachingFilter
public NoCachingFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) - Specified by:
initin interfacejakarta.servlet.Filter
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-