ECDN can automatically identify static and dynamic content access requests based on the configured rules and intelligently apply an appropriate acceleration scheme, satisfying your needs for accelerating access to sites with static, dynamic or hybrid content at one stop.
Note:If your application has been migrated to the CDN console, you can go to the console for operation by referring to Content Delivery Network.
http://www.example.com/1.jpg?version=1.1
is cached on nodes. When a user request comes in the cache, the cache_key www.example.com/1.jpg
will be looked up to return a direct hit.Cache Type | Description | Example | Remarks |
---|---|---|---|
File type | Sets the caching time based on file extension | .jpg;.png;.jsp | 1. The content is case-sensitive and must be a file extension starting with . .2. Different file extensions should be separated with ; . |
Folder | Sets the caching time based on folder | /access;/pic | 1. The content is case-sensitive, and different paths should be separated with ; .2. It must be a folder starting with / .3. It cannot end with / . |
Full-path file | Sets the caching time for a specified file | /a.jpg;/b.png | 1. The content is case-sensitive, and files at different paths should be separated with ; .2. * can be used to match a type of files by regex, such as /test/abc/*.jpg .3. It must be a folder starting with / . |
Homepage | Sets the caching time for the homepage | / | The homepage content to cache is / by default and does not need to be modified. |
Description
Suggested setting
File Type | Scenario Example | Recommended Caching Time |
---|---|---|
Basically unchanged static content | Images and audio/video files | Set the cache purge time to 30 days. |
Static content that needs updates | Files in formats such as .js and .css | Set the caching time of days or hours based on the update frequency. |
Dynamic content that is frequently updated and shared by users | Weather queries and region-specific content | Set the caching time of minutes or seconds. |
Content that is dynamically generated or cannot be accessed repeatedly by the same user | User registration and login APIs | Set the caching time to 0 to disable caching. |
You may get more than one hit result at the same time due to overlaps between caching rules you defined. Given this possibility, the setting of caching rule priority is included.
Click Edit Cache Rule. You can drag the icon to change the rule priority.
If you configure edge caching for static content, the ECDN system will handle static requests with the caching rules configured. ECDN nodes will not inherit and process the Cache-Control
field in the response header from the origin server by default, and will not cache the content if this field is private
, no-store
or no-cache
.
Was this page helpful?