URL Path
is /foo/*/bar
, both /foo/example/bar
and /foo/demo/bar
are valid values.Type | Description | Sample values |
HOST | Request Host | www.example.com |
URL Path | Request URL path | If you need to match the /example/foo/bar path, then select the operator Equal to and enter the value /example/foo/bar .If you need to match the /example directory and all files under the directory, then select the operator Equal to and enter the value /example/* . |
URL Full | Full request URL, including the protocol, domain name, URL path, and query string. | If you need to fully match the https://www.example.com/foo.jpg path, then select the operator Equal to and enter the value https://www.example.com/foo.jpg .If you need to match a path consisting of https://www.example.com/foo.jpg and a query string, then select the operator Regular expression matching and enter the value https://www.example.com/foo\\.jpg($|\\?) .If you need to match a path consisting of https://www.example.com/foo.jpg and the query string test , then select the operator Regular expression matching and enter the value https://www.example.com/foo\\.jpg($|\\?.*test=) . |
Query string | Query string in the request URL | Parameter name: key Parameter value: value |
File extension | File extension (file extension) of the request content | jpg, png, css |
File name | File name of the request content | foo.txt |
HTTP request header | HTTP request header | HTTP request header name: name HTTP request header value: value |
Client geo location | Country/region of the client IP | United States |
Request protocol | Requested protocol type | HTTPS or HTTP |
Client IP address | Client IP of the request | You can enter an IP address or IP address range. IPv4: 192.168.0.0 or 192.168.0.0/24, where 0.0.0.0/0 matches all IPv4 addresses. IPv6: 2001:db8:1234::1 or 2001:db8::/32, where ::/0 matches all IPv6 addresses. |
All | Any site request | N/A |
Type | Description |
Equal to | The request is equal to a specified value (value of the matching type). |
Not equal to | The request is not equal to a specified value (value of the matching type). |
Exist | A specified value exists in the request (HTTP header name or query parameter name). |
Not exist | A specified value does not exist in the request (HTTP header name or query parameter name). |
Regular expression matching |
Action | Description | Supported Matching Types |
By configuring the cache TTL, you can optimize node cache to improve resource loading and update resources in a timely manner. | HOST URL FULL URL Path File name File extension | |
By adjusting the cache period of resources in browsers, you can optimize the browser cache and increase the loading speed of the requested resources. | HOST URL FULL URL Path File name File extension Query string Client geo location Client IP | |
A cache key can be customized to suit your needs by setting the query string, HTTP header and URL case, so that requested resources can be loaded faster. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
You can specify a TTL period for origin response status codes, allowing the node to directly respond with non-2XX codes. | HOST URL FULL URL Path File name File extension Query string | |
Cached resources are validated via origin-pull before expiration, so that your site can respond to requests more rapidly. | HOST URL FULL URL Path File name File extension | |
After offline caching is enabled, when your origin fails, and resources cannot be pulled through origin-pull normally, resources cached on nodes (even expired resources) can be used until the origin recovers. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP |
Action | Description | Supported Matching Types |
HTTP/2 (HTTP 2.0) requests are supported to accelerate sites and improve the web performance. | HOST | |
HTTP/3 (QUIC) requests are supported. HTTP/3 (QUIC) is used to accelerate site requests and improve data transfer efficiency and security. | HOST | |
EdgeOne supports the WebSocket protocol that allows the server to proactively send data to the client. | HOST | |
The maximum upload size is the maximum data volume that can be uploaded in a single client request. You can restrict it to improve the data transfer efficiency and optimize the network transfer. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header | |
Smart Compression can automatically compress the resources to Gzip/Brotli files to reduce the files size and shorten the resource loading time. | HOST | |
Smart acceleration refers to smart dynamic routing acceleration. After this feature is enabled, it will detect the node network latency in real time and use the smart algorithm to select the optimal transfer path, so as to handle both static and dynamic client requests more quickly, stably, and securely.
Smart dynamic routing minimizes problems such as high network latency, connection errors, and request failures. | HOST | |
Request origin-pull over the HTTP/2 protocol is supported. | HOST | |
You can reasonably set the origin-pull request timeout based on the network link conditions and the data processing capability of the origin server to ensure normal origin-pull as requested. The origin-pull timeout is defined as follows. If there is no data response from the origin server after a node initiates an origin-pull request, no matter how long the duration is, the node considers it a timeout and actively disconnects from the origin server. | HOST |
Action | Description | Supported Matching Types |
You can use 301 or 302 redirect to redirect HTTP client requests to HTTPS requests and send them to EdgeOne. | HOST | |
Force clients such as browsers to establish connections to edge nodes over HTTPS for global website encryption. | HOST | |
Configure the protocol version and Cipher suite that are allowed to use when the client shakes hands with the edge server TLS as needed. | HOST | |
Pre-cached OCSP responses are sent at the time of TLS handshake to improve the efficiency. | HOST | |
You can specify the protocol that EdgeOne uses in the origin-pull request. | HOST |
Action | Description | Supported Matching Types |
You can customize, add, and delete headers in HTTP responses from nodes to clients. | HOST URL FULL URL Path File name File extension Query string Client geo location Client IP | |
| The custom header can carry the real client IP to the origin. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP |
The custom header can carry the geographical location information of the client IP to the origin. | HOST Client geo location Client IP | |
You can customize, add, and delete headers in HTTP origin-pull requests from nodes to the origin. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
Host header rewriting enables you to rewrite the host header to the actual origin domain when the origin domain is different from the acceleration domain in the load balancing task. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP Request protocol |
Action | Description | Supported Matching Types |
A node redirects the URL requested by the client to the destination URL based on the response status code. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
As an access control policy, token authentication supports creating rules to validate access and filter out unauthorized access requests. This effectively prevents your site resources from being maliciously hotlinked and thus protects your business. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header | |
Modify Origin | Configuration of primary and secondary sources, separate Path, and separate region Rules for complex origin-pull strategies. | HOST + Any matching type below: URL Path Client country/region HTTP Request Header Query string File extension |
Based on specified rules, this feature rewrites the user request URL received by the node to the destination URL when the node sends the request to the origin server, which doesn't affect the node cache key. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
You can specify which part of the query string and Cookie to be included in the request when it’s forwarded to the origin. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
When origin-pull is requested, the redirect will be based on the 302/301 status code of the origin server, and you can specify the maximum number of redirects (which is 3 by default and can be 1-5). | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
You can redirect requests to a custom error page for specific error status codes returned by the origin. The redirection is performed when a 302 is returned. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Client IP | |
Range GETs can be enabled to reduce the consumption of large file origin-pulls and response time. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header | |
The HTTP response feature is supported by the rule engine. When the corresponding conditions are met, the EdgeOne node directly responds with the specified status codes and page content. | HOST URL FULL URL Path File name File extension Query string HTTP Request Header Client geo location Request protocol Client IP All (any site request) |
Was this page helpful?