org.loom.annotation
Annotation Type Cache


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Documented
public @interface Cache

Annotated methods calculate the CacheControl instance to be asociated to the current request. CacheInterceptor will intercept the request just before event execution, and if the cache headers indicate that the browser version is still valid, the event will not be executed and the browser will receive a 304 (NOT MODIFIED) response instead.


Optional Element Summary
 java.lang.String[] except
          the list of events where to apply the caching method, empty for none.
 java.lang.String[] on
          the list of events where to apply the caching method, empty for all.
 

on

public abstract java.lang.String[] on
the list of events where to apply the caching method, empty for all. Accepts wildcards.

Default:
{}

except

public abstract java.lang.String[] except
the list of events where to apply the caching method, empty for none. Accepts wildcards.

Default:
{}