EdgeOne edge nodes cache source content to a vast network of global acceleration nodes, enabling users to access desired content nearby, avoiding network instability and high latency caused by network congestion, inter-carrier issues, and cross-regional, or cross-border factors. This effectively enhances download speeds, reduces response times, and delivers a seamless user experience.
Origin Server: Refers to the stable business server that users operate on. EdgeOne manages business origin servers in groups called origin server groups. Configured origin server groups can be referenced in functions like adding acceleration domains and Layer 4 proxies. An origin server group is the smallest configuration unit in load balancing, allowing the addition of one or multiple origin servers. When adding multiple origin servers, traffic load can be adjusted by configuring weights.
After your site is connected to EdgeOne, EdgeOne edge nodes will determine whether to cache client requests' resource files responded by the origin server based on the rules configured for caching. Once the edge node caches this file, when another user initiates the same file request, it can be directly responded to by the EdgeOne edge node, effectively avoiding long trips to the origin server. This allows for faster responses to users' requests for the latest files, greatly enhancing the end-user access experience.
Supported Origin Group Types in EdgeOne
HTTP Dedicated: Supports adding IP/domain name origins and object storage origins, and can only be used for site acceleration-related services (e.g., Domain Name Service and rule engine - Modify origin).
Universal: Only supports adding IP/domain name as origin, does not support adding object storage origin, and can be used for site acceleration services (such as Domain Name Service and rule engine) and L4 proxy.
Supported Origin Server Types in EdgeOne
Create Origin Server Group
Add Origin Servers
Explanation
Regarding the configuration of weights in the origin group:
Specifies the request protocol used by EdgeOne during origin fetch.
Upstream Timeout
The EdgeOne rule engine allows customization of origin fetch timeout settings. Depending on network conditions and the origin server's processing capacity, it's recommended to set an appropriate fetch request timeout to ensure successful origin fetching. The origin fetch timeout is the duration within which a node, after initiating a fetch request, can consider a lack of response from the origin server as a timeout and actively disconnect.
Currently, EdgeOne supports configuring HTTP response timeout (TCP connection timeout configuration coming soon) with an integer value between 5 and 300. The default value is 15 seconds. After a successful connection between the node and the origin server, if the node sends an HTTP request and doesn't receive any response data within 15 seconds (including no response or interrupted data transmission), the node will consider it an HTTP response timeout.
Control of origin request parameters
By default, when origin-pulling, all query strings and Cookies within the request will be retained. If your business origin only allows specified query strings or Cookie information to be carried in the origin-pull request, you can ensure the normal origin-pull request by deleting the specified origin-pull request parameters.
Redirect Following During Origin-Pull
Under normal circumstances, when the origin returns a 301/302 request, the node will return the status code to the client by default, and the client will redirect to the corresponding resources for access. EdgeOne supports follow-origin redirects. When enabled, if the node receives a 301/302 status code during origin-pull, it will actively follow the redirect (not exceeding the set maximum redirects) to the specified address until the corresponding file is obtained, and then respond to the client with the actual resources, which can improve the user's access response speed.
Since EdgeOne edge nodes cache a large amount of origin server resources, a problem arises: how to ensure that the resources on EdgeOne edge nodes remain synchronized with the content on the origin server after changes are made to the origin server resources?
When a business releases new resources, the client's first request for these resources may encounter a situation where there is no cache on EdgeOne, resulting in an inability to respond immediately and the need to follow the origin to obtain. The cache prefetch function allows resources to be cached on EdgeOne in advance. In this way, even if the client requests for the first time, it can be directly responded from the cache of EdgeOne without the need to follow the origin. The implementation of cache prefetch is to submit the URLs that need to be pre-warmed, and then cache the resources that match these URLs from the origin to EdgeOne in advance, thereby improving the acceleration effect and mitigating the pressure on the origin.
You may need to use this function in the following scenarios:
Note
When preheating resources, simulated requests will be made to retrieve the corresponding resources from the origin. If there are many preheating tasks submitted, more origin-pull requests will be generated, and the bandwidth of the origin will increase.
If the preheated resources conflict with the node cache, that is, if EdgeOne has cached identical resources and they have not expired, they will still be valid and will not be overwritten by the preheated resources. If the identical resources have changed, you can purge the corresponding node cache before preheating.
Scenario One: Preheat cache by inputting content
If you have less content to preheat and it is convenient to input the content directly in the input box, please follow the steps below:
Scenario Two: Batch import preheating cache content by uploading files
If you have more content to preheat or have already placed the content in a file, you can choose to upload the file:
When your resource content is cached to the EdgeOne edge node, during the cache validity period, users accessing the resource will be directly responded by the EdgeOne edge node without triggering a return to the origin. If your origin site updates the resource content at this time, in order to prevent users from still accessing the old resource files, you can manually clear the cached resources in all edge nodes by using the Cache Purge function. After the cache is cleared, when users access the resource, EdgeOne will follow the origin to obtain the latest resource for response.
You may need to use this function in the following scenarios:
EdgeOne clears the cache support based on various types of purging, details as follows:
EdgeOne Cache Purge is divided into direct deletion and mark as expired methods, as follows:
Scenario One: Clear cache by entering content
If you have a small amount of content to clear and it is convenient to enter the content directly in the input box, you can follow these steps:
Scenario Two: Clear cache by uploading a file for batch import
If you have a large amount of content to clear or have already placed the content in a file, you can choose to upload the file:
Cache Purge
Type | Single Submission quantity | Effective Time |
URL | 1-5000 URLs | 5-50 minutes |
Directory | 1-1000 directories | 5-220 minutes |
Hostname | 1-1000 Hostname | 5-220 minutes |
Cache-Tag | 1-100 Cache-Tag | 5-10 minutes |
All Cache | - | 5-220 minutes |
Cache Prefetch
Type | Single Submission quantity | Effective Time |
URL | 1-5000 URLs | 5-30 minutes |
Note
For more information on EdgeOne cache configuration, cache rules, cache keys, and related features, you can continue to learn through the documentation. To improve EdgeOne's cache hit rate, please refer here.