I have a azure frontdoor standard sku with caching enabled on route by deafult the caching is 1 to 3 days how to override it using rules what condition to use to make it run for all requests

Abhishek Singh 376 Reputation points
2023-01-30T08:55:39.7933333+00:00

I have a azure frontdoor with caching enabled on route by deafult the caching is 1 to 3 days how to override it using rules what condition to use to make it run for all requests and override caching to some lesser duration.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
548 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 20,606 Reputation points Microsoft Employee
    2023-01-30T23:26:48.2033333+00:00

    @Abhishek Singh ,

    Thank you for reaching out on Microsoft Q&A platform.

    As documented here you can use route configuration override action to override the origin group or the caching configuration to use for the request. You will have to set the Cache Behavior to Override always and provide the duration desired. This behavior will only be applied if the response is cacheable. You can go through the document above to set other parameters like Query string caching behavior, Compression based on your requirements.

    To apply it to all requests you can set the condition in the following way.

    User's image

    Reference rule :

    User's image

    Additional reference :

    https://learn.microsoft.com/en-us/azure/frontdoor/front-door-caching?pivots=front-door-standard-premium

    Hope this helps! Please let me know if you have any additional questions. Thank you!

    0 comments No comments

0 additional answers

Sort by: Most helpful