Hello Omkar, Welcome to MS Q&A
To set up a caching rule in Azure Front Door Classic mode, follow these steps:
- Access the Front Door Designer: Navigate to your Azure Front Door instance and open the Front Door designer.
- Create or Edit a Routing Rule: You can either create a new routing rule or edit an existing one.
- Enable Caching: In the routing rule settings, enable caching. You can specify whether to use the default cache duration or set a custom duration.
- Configure Cache Behavior:
- If you enable caching, you can choose to honor the origin response header directive or override it with a specified cache duration.
- If caching is disabled, Azure Front Door will not cache the response contents.
- Use Rules Engine for Advanced Caching: If you need more control over caching, you can use the Rules Engine to dynamically modify caching configurations based on incoming requests.
- Testing: Before finalizing your caching rules, thoroughly test all possible scenarios to ensure that user-specific data is not inadvertently cached.
References:
- Caching with Azure Front Door (front-door-classic)
- What is a rule set in Azure Front Door? (front-door-classic)
Please let us know if any further questions
Kindly accept answer if it helps
Thanks
Deepanshu