net.rossillo.spring.web.mvc
Annotation Type CacheControl


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface CacheControl

Provides an HTTP 1.1 cache control header annotation for Spring MVC controller methods. See also http://www.mnot.net/cache_docs/

Author:
Scott Rossillo

Optional Element Summary
 int maxAge
          The maximum amount of time, in seconds, that this content will be considered fresh.
 CachePolicy[] policy
          The cache-control policies to apply to the response.
 int sharedMaxAge
          The maximum amount of time, in seconds, that this content will be considered fresh only for shared caches (e.g., proxy) caches.
 

policy

public abstract CachePolicy[] policy
The cache-control policies to apply to the response.

See Also:
CachePolicy
Default:
net.rossillo.spring.web.mvc.CachePolicy.NO_CACHE

maxAge

public abstract int maxAge
The maximum amount of time, in seconds, that this content will be considered fresh.

Default:
0

sharedMaxAge

public abstract int sharedMaxAge
The maximum amount of time, in seconds, that this content will be considered fresh only for shared caches (e.g., proxy) caches.

Default:
-1


Copyright © 2015. All rights reserved.