-
Notifications
You must be signed in to change notification settings - Fork 19
CacheControl Plugin Settings
Si Carter edited this page Oct 14, 2018
·
1 revision
The CacheControl plugin adds cache-control header values to user defined routes, to improve end user page loading.
CacheControl is configures with appsettings.json file, add a new section called CacheControlRoute. Contains the following properties
The plugin is disabled and no caching headers will be added.
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.
String array of routes to cache, i.e. /js/ or /css/