Annotation Type CacheControl
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface CacheControlProvides Cache-Control header for Spring MVC controllers.- See Also:
- RFC 7234
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description CacheControlDirective[]directiveArray of non-parameterized response directivesintmaxAgeThe "max-age" response directive indicates that the response is to be considered stale after its age is greater than the specified number of seconds.intsMaxAgeThe "s-maxage" response directive indicates that, in shared caches, the maximum age specified by this directive overrides the maximum age specified by either the max-age directive or the Expires header field.
-
-
-
Element Detail
-
directive
CacheControlDirective[] directive
Array of non-parameterized response directives- Default:
- {de.hybris.platform.webservicescommons.cache.CacheControlDirective.NO_CACHE}
-
-
-
sMaxAge
int sMaxAge
The "s-maxage" response directive indicates that, in shared caches, the maximum age specified by this directive overrides the maximum age specified by either the max-age directive or the Expires header field. The s-maxage directive also implies the semantics of the proxy-revalidate response directive.- Default:
- -1
-
-