Skip to content

CacheControl Plugin Settings

Si Carter edited this page Oct 14, 2018 · 1 revision

CacheControl

The CacheControl plugin adds cache-control header values to user defined routes, to improve end user page loading.

Settings

CacheControl is configures with appsettings.json file, add a new section called CacheControlRoute. Contains the following properties

Disabled

The plugin is disabled and no caching headers will be added.

CacheMinutes

Number of minutes for the browser to cache the document. If the value is < 1 the cache header will be set to no-cache which prevents caching.

Route

String array of routes to cache, i.e. /js/ or /css/