WebjarsConfig

A configuration for the Webjars plugin.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Specifies a prefix for the path used to serve WebJars assets.

Functions

Link copied to clipboard
fun etag(block: (WebJarAssetLocator.WebJarInfo) -> String?)

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

Link copied to clipboard
fun lastModified(block: (WebJarAssetLocator.WebJarInfo) -> GMTDate?)

Specifies a value for HttpHeaders.LastModified to be used in the response. By default, it is the time when this Application instance started. Return null from this block to omit the header.

Link copied to clipboard
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.