Annotation Interface CacheControl
Provides Cache-Control header for Spring MVC controllers.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionArray of non-parameterized response directivesintThe "max-age" response directive indicates that the response is to be considered stale after its age is greater than the specified number of seconds.intThe "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 Details
-
directive
CacheControlDirective[] directiveArray of non-parameterized response directives- Default:
- {NO_CACHE}
-
maxAge
int maxAgeThe "max-age" response directive indicates that the response is to be considered stale after its age is greater than the specified number of seconds.- Default:
- -1
-
sMaxAge
int sMaxAgeThe "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
-