Package io.ktor.server.plugins.cachingheaders

Types

Link copied to clipboard
class CachingHeadersConfig

A configuration for the CachingHeaders plugin.

Properties

Link copied to clipboard
val CachingHeaders: <ERROR CLASS><CachingHeadersConfig>

A plugin that adds the capability to configure the Cache-Control and Expires headers used for HTTP caching. The example below shows how to add the Cache-Control header with the max-age option for CSS and JSON: