To accelerate the delivery of both dynamic and static resources, you can enable the dynamic acceleration feature. You can customize acceleration rules for static resources by configuring static file types. In this case, static files no longer use dynamic acceleration. This allows you to cache static resources to edge nodes and use the optimal routing to retrieve dynamic resources from the origin server.
Background information
- Enable dynamic acceleration
To accelerate the delivery of static and dynamic resources, you must turn on Dynamic Acceleration. You can configure acceleration rules for static file types based on your business requirements. Then, the delivery of static and dynamic resources is accelerated based on these custom acceleration rules. You can customize the file types, the Uniform Resource Identifiers (URIs), and the directories of static resources that can be cached on DCDN cache nodes.
- Disable dynamic acceleration
If you do not need to accelerate the delivery of dynamic resources, you can turn off Dynamic Acceleration. After dynamic acceleration is disabled, the dynamic resources are delivered without acceleration. Static resources are delivered based on edge cache rules. Only the default static file acceleration rules are valid. All custom static file acceleration rules become invalid.
Procedure
- Configure the static file types.
- Create a cache expiration rule.