Class HttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration

java.lang.Object
io.micronaut.http.server.HttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration
Enclosing class:
HttpServerConfiguration.FileTypeHandlerConfiguration

@ConfigurationProperties("cache-control") public static class HttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration extends Object
Configuration for the Cache-Control header.
  • Constructor Details

    • CacheControlConfiguration

      public CacheControlConfiguration()
  • Method Details

    • setPublic

      public void setPublic(boolean publicCache)
      Sets whether the cache control is public. Default value (false)
      Parameters:
      publicCache - Public cache value
    • getPublic

      @NonNull public @io.micronaut.core.annotation.NonNull boolean getPublic()
      Returns:
      True if the cache control should be public