maxAge

fun maxAge(block: (WebJarAssetLocator.WebJarInfo) -> Duration?)

Specifies a value for HttpHeaders.CacheControl to be used in the response. By default, it is 90 days. Return null from this block to omit the header.

Note: for this property to work, you need to install the CachingHeaders plugin.