Filter parameter

Last Updated: Feb 07, 2018

Introduction

  • When a URL request carrying ? and request parameters are sent to a CDN node, the CDN node determines whether to send the request to the origin site. If the Filter Parameter function is enabled, after the request arrives at the CDN node, the URL without parameters will be intercepted and requested against the origin site. Additionally, the CDN node retains only one copy. If the Filter Parameter function is disabled, different copies will be cached on the CDN node for different URLs.

  • An HTTP request typically contains the requisite parameters. If the content of a parameter has a low priority and the parameter overview file can be ignored, it recommended to enable the Filter Parameter function. This improves the file cache hit rate and the delivery efficiency.

  • If a parameter has important indicators (for example, if it contains file version information), we recommend that you disable this function.

Example of use

The http://www.abc.com/a.jpg?x=1 URL request is sent to a CDN node.

  • If the Filter Parameter function is enabled, the CDN node initiates the http://www.abc.com/a.jpg request (ignore the parameter x=1) to the origin site. After the origin site returns a response, the CDN node retains a copy. Then, the origin site continues to respond to http://www.abc.com/a.jpg to the terminal. For all requests similar to http://www.abc.com/a.jpg?parameters, the origin site responds to the CDN copy content http://www.abc.com/a.jpg.

  • If the Filter Parameter function is disabled, different copies are cached on the CDN node for different URLs. For example, different content are returned from the origin site in case of http://www.abc.com/a.jpg?x=1 and http://www.abc.com/a.jpg?x=2.

Considerations

URL authentication has a higher priority than the Filter Parameter function. Because type A authentication information is contained in the parameter section of an HTTP request, the system first performs the authentication and then caches a copy on the CDN node after the authentication succeeds.

Procedure

  1. Log on to the CDN console.

  2. On the left-side navigation pane, click CDN Domain Name List.

  3. Select a domain to enter the management page and find Filter parameters

88

Thank you! We've received your feedback.