百度智能云

All Product Document

          CDN Abroad

          Ignore Parameters

          Overview

          Ignoring Parameters means ignoring URL requests “? "For the subsequent parameters, you can ignore parameters and flexibly control the version to improve the CDN cache hit rate.

          Notes

          Enabling this feature can ignore URL cached parameters and improve file cache hit rate, but important information of the Key may also be ignored. Please set it according to your business demands.

          Configure Ignoring Parameter

          1. Log into the CDN Management Console and enter the “Content Delivery Network (CDN) " page.
          2. Click Domain Name Management on the left navigation bar.
          3. Enter the domain name management page, and click the Management of the target domain name operation column.
          4. Enter the “CDN Domain Name Details " page, and select the Cache Configuration tab in the navigation bar at the top of the page.
          5. In Ignore Parameters module, set the ignoring URL parameter as ON or OFF.

          image.png

          Ignore the state of URL parameters Description
          EnableAfter the request arriving at the CDN node, the URL with no parameters is captured to request to the origin server, and the CDN node only keeps a copy.
          • As most of the HTTP request contains parameters, but the contents of parameter have a low priority, so you can ignore the parameters to browse the file, which is suitable to enable such function; after it is enabled, it can effectively improve the file cache hit rate and the distribution efficiency.
          • If the parameter has important meanings, such as containing file version information, recommend you to set “Retain parameters ". You can set multiple retention parameters. If the request contains any “retained parameter”, it forwards to origin with the retained parameter, and the unspecified parameters are not retained.
          DisableEach different URL will cache different duplicate in CDN nodes.

          Configure Samples

          For example, we assume that http://www.bcecdn.com/sample.png? x=1 Request URL to the CDN node:

          • After “Ignore parameters " is enabled, the CDN node sends a request http://www.bcecdn.com/sample.png to the origin server (ignore parameter x=1). After the origin server responds to the request content, and the response arrives at the CDN node, the CDN node keeps a copy, and then continues to respond to the content of http://www.bcecdn.com/sample.png with the terminal. All the similar requests http://www.bcecdn.com/sample.png?Parameter Respond to the content of the CDN copy http://www.bcecdn.com/sample.png.
          • Disable the function of "Ignore Parameters", each different URL will cache different duplicate on the node of CDN. E.g.: http://www.bcecdn.com/sample.png?x=1 and http://www.bcecdn.com/sample.png? x=2 Respond to the content of origin server with different parameters.
          Previous
          Configure the Cache Expiration Time
          Next
          Access Control