You are managing a web application that distributes documents through an Azure CDN endpoint. You need to configure a custom caching rule in the Azure portal that overrides the default caching behavior specifically for files in the `/pdf/` directory.
In which order should you perform the steps in the Azure portal to configure and apply this custom caching rule?
- 1Navigate to the Azure CDN endpoint blade in the Azure portal.
- 2Select Caching rules under the Settings menu of the endpoint.
- 3In the Custom caching rules section, add a rule with the match condition set to Path, the match value to `/pdf/*`, and the caching behavior to Override.
- 4Click Save on the command bar to apply the configuration changes.
Answer
To configure a custom caching rule in the Azure portal, you must first navigate to the CDN endpoint, select the Caching rules settings, configure the path match and override behavior in the Custom caching rules section, and then save the changes.
The correct order begins with locating the target CDN endpoint in the portal. Next, navigation to the caching rules settings is required. Once inside, you define the custom rule settings (using the path match condition and override behavior) to target the `/pdf/` directory. Finally, saving the settings deploys the rule to the CDN POPs.
Step-by-Step Solution
Key Concept
Custom caching rules allow overriding or bypassing default caching behaviors based on specific match conditions like path or file extension.