Class CookieCacheControlFilter

java.lang.Object
org.eclipse.rdf4j.workbench.proxy.CookieCacheControlFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CookieCacheControlFilter extends Object implements javax.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 Details

    • CookieCacheControlFilter

      public CookieCacheControlFilter()
  • Method Details

    • init

      public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter
    • doFilter

      public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
      Specified by:
      doFilter in interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException