Product Documentation

Actions to Associate with Integrated Caching Policies

Sep 01, 2016

The following table describes actions for integrated caching policies.

Table 1. Actions That You Can Associate with an Integrated Caching Policy

Action

Specifies

CACHE

Serves a response from the cache if the response has not expired. If the response must be fetched from the origin server, the NetScaler appliance caches the response before serving it.

Even data that is updated and accessed frequently can be cached. For example, stock quotes are updated frequently, but they can be cached so that they can be served quickly to multiple users. If necessary, cached data can be refreshed immediately after it is downloaded.

A CACHE action can be overridden by built-in policies.

NOCACHE

Always fetches the response from the origin server and marks the response as non-storable.

You typically configure NOCACHE policies for data that is sensitive or personalized.

MAY_CACHE

Used in a request-time policy, this setting provisionally enables a response to be stored in a content group, pending evaluation of response-time policies. The following are possible:

  • If a matching response-time policy has a CACHE action but does not specify a content group, the response is stored in the Default group unless built-in policies override this policy.
  • If a matching response-time policy has a CACHE action and specifies the same content group as the one in the request-time policy, the response is stored in the named content group unless built-in policies override this policy.
  • If a matching response-time policy has a CACHE action but specifies a different content group from the one in the request-time policy, a NOCACHE action is applied.
  • If a matching response-time policy has a NOCACHE action, perform a NOCACHE action.
  • If there is no matching response-time policy, a CACHE action is applied, unless a built-in policy overrides this policy.

MAY_NOCACHE

For a request-time policy, this setting provisionally prevents caching the response. At response time, one of following actions is taken:

  • If no response-time policy matches the request, the final action is NOCACHE.
  • If a matching response-time policy contains a CACHE action, the final action is CACHE, unless built-in policies override this policy.
  • If a matching response-time policy contains a NOCACHE action, the final action is NOCACHE.
  • If a matching response-time policy has a CACHE action but does not specify a content group, the final action is to CACHE the response in the Default content group, unless built-in policies override this policy.

INVAL

Expires cached responses. Depending on how the policy and the content group are configured, all responses in one or more content groups are expired, or selected objects in the content group are expired.

Note: You can specify INVAL actions in request-time policies only.