Dynamic Route for CDN (DCDN) allows you to set file extensions to specify static file types. DCDN no longer uses dynamic acceleration to deliver the specified static files. Instead, it uses static acceleration and allocates the optimal nodes for caching and delivery.
To accelerate the delivery of static and dynamic resources, you must enable dynamic acceleration. You can customize acceleration rules for static and dynamic resources based on your business needs. The delivery of static and dynamic resources are then accelerated based on these custom acceleration rules. You can customize the file types, the URIs, and the directories of static resources that can be cached in the DCDN cache nodes. You can also set the origin protocol policy for DCDN to retrieve dynamic resources from the origin server.
If you no longer need to accelerate the delivery of dynamic resources, you can disable dynamic acceleration. After dynamic acceleration is disabled, the dynamic resources are delivered without acceleration. Static resources are delivered based on edge caching. Only the default static file acceleration rules are valid. All manually added static file acceleration rules become invalid.
- Log on to the Dynamic Route for CDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, find the target domain name and click Configure.
- In the left-side navigation pane of the specified domain name, click Acceleration Rules.
- On the Dynamic Acceleration page, turn on Dynamic Acceleration.
- Click the Static File Types tab, and click Modify.
- In the dialog box that appears, select the types of static files.
- Click OK.