close

Filter

loading table of contents...

Deployment Manual / Version 2010

Table Of Contents

4.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.ResourceProperties$Cache$Cachecontrol>
Default  
Description

Map of initial cache control configuration objects for Http cache control Header. See {@link ResourceProperties.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.ResourceProperties$Cache$Cachecontrol>
Default  
Description

Map of initial cache control configuration objects for Http cache control Header. See {@link ResourceProperties.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

Table 4.3. Configuration Properties with Prefix cache.control


Search Results

Table Of Contents