Interface StaticResourcesConfig


public interface StaticResourcesConfig
  • Method Details

    • indexPage

      @WithDefault("index.html") String indexPage()
      Set the index page when serving static resources.
    • includeHidden

      @WithDefault("true") boolean includeHidden()
      Set whether hidden files should be served.
    • enableRangeSupport

      @WithDefault("true") boolean enableRangeSupport()
      Set whether range requests (resumable downloads; media streaming) should be enabled.
    • cachingEnabled

      @WithDefault("true") boolean cachingEnabled()
      Set whether cache handling is enabled.
    • cacheEntryTimeout

      @WithDefault("30S") Duration cacheEntryTimeout()
      Set the cache entry timeout. The default is 30 seconds.
    • maxAge

      @WithDefault("24H") Duration maxAge()
      Set value for max age in caching headers. The default is 24 hours.
    • maxCacheSize

      @WithDefault("10000") int maxCacheSize()
      Set the max cache size.
    • contentEncoding

      @WithDefault("UTF-8") Charset contentEncoding()
      Content encoding for text related files
    • directoryListing

      @WithDefault("false") boolean directoryListing()
      Set whether directory listing should be enabled.

      When enabled, if a request is made to a path that maps to a directory, the server returns an HTML page listing the directory contents.

    • sendVaryHeader

      @WithDefault("true") boolean sendVaryHeader()
      Set whether the Vary header should be sent in responses.

      The Vary header indicates to caches that the response may vary based on the value of the specified request headers (e.g. Accept-Encoding).