code: public static boolean isStatic(final HttpServletRequest request) {
          final boolean requestStaticResourceChecked = null == request.getAttribute(Keys.HttpRequest.REQUEST_STATIC_RESOURCE_CHECKED)
                  ? false
                  : (Boolean) request.getAttribute(Keys.HttpRequest.REQUEST_STATIC_RESOURCE_CHECKED);
  
          if (requestStaticResourceChecked) {
              return (Boolean) request.getAttribute(Keys.HttpRequest.IS_REQUEST_STATIC_RESOURCE);
          }
  
          if (!inited) {
              init();
          }
  
          request.setAttribute(Keys.HttpRequest.REQUEST_STATIC_RESOURCE_CHECKED, true);
          request.setAttribute(Keys.HttpRequest.IS_REQUEST_STATIC_RESOURCE, false);
  
          final String requestURI = request.getRequestURI();
  
          for (final String pattern : STATIC_RESOURCE_PATHS) {
              if (AntPathMatcher.match(Latkes.getContextPath() + pattern, requestURI)) {
                  request.setAttribute(Keys.HttpRequest.IS_REQUEST_STATIC_RESOURCE, true);
                  return true;
              }
          }
  
          return false;
      }
docs: Determines whether the client requests a static resource with the specified request.
  
  @param request the specified request
  @return {@code true} if the client requests a static resource, returns {@code false} otherwise