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 Summary
-
Method Summary
-
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
- Returns:
- True if the cache control should be public
-