Class NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration

java.lang.Object
io.micronaut.http.server.netty.configuration.NettyHttpServerConfiguration.FileTypeHandlerConfiguration.CacheControlConfiguration
Enclosing class:
NettyHttpServerConfiguration.FileTypeHandlerConfiguration

@ConfigurationProperties("cache-control") public static class NettyHttpServerConfiguration.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