You can specify whether POPs ignore the question mark (?
) and the query string that follows the question mark (?
) in a request URL before cache keys are generated. The query string includes information such as user identity and originating IP addresses. This increases the cache hit ratio and accelerates page loading.
Feature description
Description | Scenario |
If you configure to ignore the question mark | When users access a resource on ESA POPs, they may include parameters after the question mark ( If parameters included after the question mark (
If POPs directly handle the requests without ignoring query strings, they cannot serve the same cached file. Instead, each request goes to the origin server to fetch the resource. After you configure to ignore query strings in request URLs, POPs serve content only based on |
Procedure
Log on to the ESA console.
In the left-side navigation pane, click Websites.
On the Websites page, find the website that you want to manage, and click the website name or View Details in the Actions column.
In the left-side navigation tree, choose
.In the Query Strings section, click Configure. Select an option and complete the setting as prompted.
The following table takes
http://example.com/1.jpg?key1=1&key2=2&key3=3
as an example to shows how different options affect the generated cache keys.Click OK.
Parameter | Operation | Example |
Ignore All | Ignores the question mark ( | The cache key is |
Retain All | Retains the question mark ( | The cache key is |
Ignore Specific Parameters | Ignores specific parameters in the query string after the question mark ( | If the parameters that you want to ignore are |
Retain Specific Parameters | Retains specific parameters in the query string after the question mark ( | If the parameters that you want to retain are |