Ignore Parameters
Last Updated:2020-09-17
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
- Log into the CDN Management Console and enter the “Content Delivery Network (CDN) " page.
- Click Domain Name Management on the left navigation bar.
- Enter the domain name management page, and click the Management of the target domain name operation column.
- Enter the “CDN Domain Name Details " page, and select the Cache Configuration tab in the navigation bar at the top of the page.
- In Ignore Parameters module, set the ignoring URL parameter as ON or OFF.
Ignore the state of URL parameters | Description |
---|---|
Enable | After 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.
|
Disable | Each 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 ofhttp://www.bcecdn.com/sample.png
with the terminal. All the similar requestshttp://www.bcecdn.com/sample.png?
Parameter Respond to the content of the CDN copyhttp://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
andhttp://www.bcecdn.com/sample.png? x=2
Respond to the content of origin server with different parameters.