Built-in cache redirection policies
Built-in Advanced policy cache redirection policies
-
CACHE
-
ORIGIN
| Built-In Policy Name | Description |
|---|---|
| bypass-non-get_adv | Bypass the cache if the request uses an HTTP method other than GET. |
| bypass-cache-control_adv | Bypass the cache if the request header contains a Cache-Control: no-cache or Cache-Control: no-store header, or if the HTTP request contains a pragma header. |
| bypass-dynamic-url_adv | Bypass the cache if the URL suggests that the content is dynamic, as indicated by the presence of any of the following extensions: cgi, asp, exe, cfm, ex, shtml, or htx. Also bypass the cache if the URL starts with any of the following: /cgi-bin/, /bin/, or /exec/. |
| bypass-urltokens_adv | Bypass the cache because the request is dynamic, as indicated by one of the following tokens in the URL: ?, !, or =. |
| bypass-cookie_adv | Bypass the cache for any URL that has a cookie header and an extension other than .gif or .jpg. |
Display the built-in cache redirection policies
Display the built-in cache redirection policies by using the CLI
show cr policy [<policyName>]
> show cr policy
1)
Policy: bypass-non-get-adv Rule: HTTP.REQ.METHOD.EQ(GET).NOT Action: ORIGIN
Hits: 0
2)
Policy: bypass-cache-control-adv Rule: ((HTTP.REQ.CACHE_C0NTR0L.IS_N0_ST0RE) || (HTTP.REQ.CACHE_C0NTR0L.IS_NO_CACHE) || (HTTP.REQ.HEADER("Pragma").C0NTAINS("no-cache")))
ction : ORIGIN
Hits: 0
3)
Policy: bypass-dynamic-url-adv Rule: (HTTP.REQ.URL.ENDSWITH_ANY("ns_cr_dynamic_ext") || (HTTP.REQ.URL.PATH.STARTSWITH_ANY("ns_cr_dynamic_path"))) Action: ORIGIN
Hits: 0
4)
Policy: bypass-urltokens-adv Rule: HTTP.REQ.URL.REGEX_MATCH(re/[?!=]/) Action: ORIGIN
Hits: 0
5)
Policy: bypass-cookie-adv Rule: ((HTTP.REQ.HEADER("Cookie").EXISTS) && (!(HTTP.REQ.URL.ENDSWITH(".gif"))) && (!(HTTP.REQ.URL.ENDSWITH(".jpeg")))) Action: ORIGIN
Hits: 0
Done
Display the built-in cache redirection policies by using the GUI
-
Navigate to Traffic Management > Cache Redirection > Policies. The configured cache redirection policies appear in the details pane.
-
Select one of the configured policies to view details.