Map of cache control configuration objects for HTTP Cache-Control
header. The configuration is URL pattern specific. Patterns are
matched using
org.springframework.util.AntPathMatcher
. For every URL the content validity dates are taken into account to
compute the max-age value. A negative configured max-age value
disables cache control for the URL pattern. A configured positive
max-age value is taken as maximum value for the URL pattern. Thus, if
X is configured and Y is computed, then min(X,Y) is returned as
max-age.
Note that max-age values must not be higher than 31536000 (365 days in
seconds).
Also note that, by consequence, a response including properties of a
content that is valid for more than a year according to its content
settings, and for whose URL pattern no max-age value is defined, will
include a max-age value of a year.
|