cache

fun cache(cacheControlConfig: ServerCacheControlDsl.() -> Unit)

Allows customizing the CacheControlServerHttpHeadersWriter. Specifically it adds the following headers:

  • Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  • Pragma: no-cache
  • Expires: 0

Parameters

cacheControlConfig

the customization to apply to the headers