close

Filter

loading table of contents...

Deployment Manual / Version 2307

Table Of Contents

3.1.3 Http Cache Control Properties

cae.cache-control.cache-size
Type java.lang.Integer
Default 10000
Description

Maximum count of cache configuration entries. Cache cleans up automatically considering LRU strategy. Default is 10000 entries.

cae.cache-control.for-type
Type java.util.Map<java.lang.String,org.springframework.boot.autoconfigure.web.WebProperties$Resources$Cache$Cachecontrol>
Default  
Description

Map of initial cache control configuration objects for Http cache control Header. See WebProperties.Resources.Cache.Cachecontrol for further details. The configuration is type specific, but also can benefit from abstraction along the class hierarchy. That means that you may simply configure a common value for a super class instead of taking care about all the child classes. The type information part of the property name should be the simple name of the class (no package information) and in lowercase. Configuration of classes with the same name in different packages is not supported.

Example Configuration:

   cae.cache-control.for-type.cmlinkable.max-age=1m   cae.cache-control.for-type.blob.max-age=180d   

Default/Fallback:

cae.cache-control.for-type.object.max-age=1m
cae.cache-control.for-url-pattern
Type java.util.Map<java.lang.String,org.springframework.boot.autoconfigure.web.WebProperties$Resources$Cache$Cachecontrol>
Default  
Description

Map of initial cache control configuration objects for Http cache control Header. See Resources.Cache.Cachecontrol for further details. The configuration is URL pattern specific.

cae.cache-control.initial-max-age-for-type
Type java.util.Map<java.lang.String,java.time.Duration>
Default  
Description

Initial max-age value for Cache Control Header. Does not have to be adjusted necessarily. The initial max-age value should be small, since the effective cache duration is provided with the subsequent request. The configuration is type specific, but also can benefit from abstraction along the class hierarchy. That means that you may simply configure a common value for a super class instead of taking care about all the child classes. The type information part of the property name should be the simple name of the class (no package information) and in lowercase. Configuration of classes with the same name in different packages is not supported.

Example Configuration:

     cae.cache-control.initial-max-age-for-type.blob=180d   

Default/Fallback:

cae.cache-control.initial-max-age-for-type.object=1m
cae.cache-control.s-max-age-factor
Type java.lang.Double
Default 0
Description

This value is used to compute a s-maxage header in relation to a recognized max-age value. If the value is 0.0 then the s-maxage value is not automatically adjusted. In particular this means the s-maxage value isn't written in a cache-control header unless it was otherwise configured, for example with:

  cae.cache-control.for-type.cmlinkable.s-max-age=1m 

But please note, a value other than 0.0 takes precedence over a static configured value. Then s-maxage takes the value of max-age * sMaxAgeFactor.

cae.cache-control.url-path.remove-semicolon-content
Type java.lang.Boolean
Default true
Description

Set if everything after a ";" (semicolon) should be cut from the request URI for for url-url-pattern matching. Eg. to see all matrix parameters of fragement urls this should be set to "false". Default is "true".

cae.cache-control.url-path.url-decode
Type java.lang.Boolean
Default true
Description

Set if the request URI should be decoded for url-url-pattern matching. Default is "true".

cae.cache-control.url-path.use-always-full-path
Type java.lang.Boolean
Default false
Description

Set if the full path within the current web application context is used for url-url-pattern matching. By default this is set to "false" which means "/servlet" is cut off.

Table 3.3. Configuration Properties with Prefix cache.control


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.