/folder/.*
(the first rule) and /folder/image.jpg
(the second rule). The first rule will be applied to the /folder/image file.jpg
file.
4. Select the protocol that the CDN resource will use to pull the files specified in step 4. If files are accessible over the same protocol as the origin, select “Inherit from resource”. If not, select the appropriate option: HTTP, HTTPS, or both protocols at once.
5. Click the Add option button to configure options if necessary. This will bring up the list of options. Click on the options needed (they will be added on the rule creation page), and then click Close.
Variant | Interaction method | Example |
---|---|---|
Options are not added to the rule | Option parameters will be inherited from the Resource settings | You enable the CDN caching option in the Resource settings and then create a rule where you don’t add the CDN caching option. In this case, the caching parameters for the files specified in the rule will be inherited from the appropriate option in the Resource settings. |
An option is added to the rule, but is disabled | Option parameters from the Resource Settings will be disabled | You enable the Country access policy option with the Allow by default and DE values in the Resource settings. It means that access to all content is restricted in Germany. Then, you add a rule with the disabled Country access policy option. In this case, the option parameters from the Resource Settings will not be considered for the content specified in the rule. This means that files specified in the rule will be available in Germany. |
An option is added to the rule and enabled | Option parameters from the Resource Settings will be overridden | You enable the Browser caching option with the CDN-Controlled and 4 days values in the Resource Settings. Then, you add a rule with the enabled Browser caching option and 30 minutes value. In this case, the files specified in the rule will be cached in the browser for 30 minutes. The rest of the files will be cached for 4 days. |