Cache-Key Query String

Category: Caching

Purpose: Determines whether the cache-keyA relative path that uniquely identifies an asset for the purpose of caching. Our edge servers use this relative path when checking for cached content and when caching content. By default, a cache-key will not contain query string parameters. will include or exclude query string parameters associated with a request.

Key information:

The power of Rules Engine allows the customization for the implementation of query string caching. For example, query string caching may be configured to only apply to certain locations or file types.

Duplicate the query string caching behavior known as "no-cache" on the Query-String Caching page by creating a rule that contains a URL Query Wildcard match condition and a Bypass Cache feature. The URL Query Wildcard match condition should be set to an asterisk (*).

Sample Scenarios

Sample usage for this feature is provided below. A sample request and the default cache-key are provided below.

Include

Sample configuration:

This type of configuration would generate the following query string parameter cache-key:

/800001/Origin/folder/asset.htm?language=EN

Include All

Sample configuration:

This type of configuration would generate the following query string parameter cache-key:

/800001/Origin/folder/asset.htm?sessionid=1234&language=EN&userid=01

Exclude

Sample configuration:

This type of configuration would generate the following query string parameter cache-key:

/800001/Origin/folder/asset.htm?language=EN

Exclude All

Sample configuration:

This type of configuration would generate the following query string parameter cache-key:

/800001/Origin/folder/asset.htm