Class CookieCacheControlFilter
java.lang.Object
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
Browsers do not expire cache if Cookies have changed. Even if "Vary: Cookie" header is set. This filter intercepts
the Last-Modified and If-Modified-Since headers to include modification of browser cookies.
- Author:
- James Leigh
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CookieCacheControlFilter
public CookieCacheControlFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-