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