code: private void addCacheControl(HttpAcceptSession session, File requestFile, String requestPath) {
          CacheControlHandler cacheControlHandler = urlCacheControlMap.computeIfAbsent(requestPath, 
                  path -> patterns.stream()
                       .filter(patternCacheControl -> PatternMatcherUtils.caseInsensitiveMatch(requestPath, patternCacheControl.getPattern()))
                       .findFirst()
                       .map(patternCacheControl -> new CacheControlHandler(requestFile, patternCacheControl))
                       .orElse(null)
          );
  
          if (cacheControlHandler != null) {
              addCacheControlHeader(session, requestFile, cacheControlHandler);
          }
      }
docs: Matches the file URL with the most specific pattern and caches this information in a map
  Sets cache-control and expires headers
  @param session
  @param requestFile
  @param requestPath