Hello Vishal , Welcome to MS Q&A
To set the cache control header in Azure Front Door Premium routes, you can use the Cache-Control response headers to specify how long an item should be stored in the cache. Here's the order of precedence for cache duration:
- Cache-Control: s-maxage=<seconds>
- Cache-Control: max-age=<seconds>
- Expires: <http-date>
If the Cache-Control header is not present in the response from the origin, Azure Front Door will randomly determine a cache duration between one and three days by default. Additionally, certain Cache-Control values, such as private, no-cache, and no-store, indicate that the response should not be cached.
Make sure your caching configuration aligns with the type of content being served, as not all content is suitable for caching. For more detailed guidance, you can refer to the Azure Front Door caching documentation.
Please let us know if any ques
Kindly accept if it helps
Thanks
Deepanshu