Dynamic Route for CDN (DCDN) allows you to identify static files by file path. DCDN no longer uses dynamic acceleration to deliver the specified static files. Instead, DCDN uses static acceleration and allocates the optimal nodes for caching and delivery.
- Enable dynamic acceleration
To accelerate the delivery of static and dynamic resources, you must turn on Dynamic Acceleration. You can customize acceleration rules for static and dynamic resources based on your business requirements. Then, the delivery of static and dynamic resources are 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 in the DCDN cache nodes. You can also set the origin protocol policy for DCDN to retrieve dynamic resources from the origin server.
- 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 caching. Only the default static file acceleration rules are valid. All the static file acceleration rules that are manually added become invalid.
- Log on to the DCDN console.
- In the left-side navigation pane, click Domain Names.
- On the Domain Names page, find the domain name that you want to manage, and click Configure in the Actions column.
- In the left-side navigation pane on the details page of the specified domain, click Acceleration Rules.
- Turn on Dynamic Acceleration.
- On the Static Paths tab, click Modify.
- In the Static Paths dialog box, specify Static Paths.Note You can use wildcards for a fuzzy search of static file paths. Asterisks (*) and question marks (?) can be used as wildcards. The asterisk (*) represents zero, one, or more characters, and the question mark (?) represents one character.
- Click OK.