code: @Override
      public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
              ServletException {
  
          // add the cache expiration time to the response
          if (response instanceof HttpServletResponse && request instanceof HttpServletRequest) {
              final HttpServletRequest httpServletRequest = (HttpServletRequest)request;
              final Included includedType = this.resourcesElementsProvider.getIncludedType(httpServletRequest);
              if (includedType == Included.AGGREGATED) {
                  final HttpServletResponse httpResponse = (HttpServletResponse) response;
      
                  httpResponse.setDateHeader("Expires", this.cacheMaxAge + System.currentTimeMillis());
                  httpResponse.setHeader("Cache-Control", this.cachedControlString);
              }
          }
  
          // continue
          chain.doFilter(request, response);
      }
docs: {@inheritDoc}