Cache Configuration

By default, file responses include caching headers. The following options determine how the Cache-Control header is built.

🔗

Table 1. Configuration Properties for FileTypeHandlerConfiguration
PropertyTypeDescription

netty.responses.file.cache-seconds

int

Cache Seconds. Default value (60).

🔗

Table 2. Configuration Properties for CacheControlConfiguration
PropertyTypeDescription

netty.responses.file.cache-control

FileTypeHandlerConfiguration$CacheControlConfiguration

Sets the cache control configuration.

netty.responses.file.cache-control.public

boolean

Sets whether the cache control is public. Default value (false)