Add option to detach specific files from the Azure Front Door dynamic cache
When you host a SPA (Single Page Application) on an Azure Blob storage with Azure Front Door (with dynamic caching activated):
Everytime you release a new version of the app, users have to force-reload the page in order to get the new version.
Because the links to the new assets (like main.***.js, ...) are located in the index.html, which has been cached.
I was able to solve it:
1. Let the Azure CLI set the Cache-Control header to "no-cache" on the index.html after pushing it to the blob storage:
az storage blob update --account-name $(storageAccount) --container $web --name index.html --content-cache-control no-cache
- Purge the Front Door cache:
az network front-door purge-endpoint --resource-group $(ressource) --name $(frontdoor) --content-paths "/"
Would be much better if you add an option to except files from getting cached.
Thanks for the valid suggestion. Your feedback is now open for the user community to upvote which allows us to effectively prioritize your request against our existing feature list and also gives us insight into the potential impact of implementing the suggested feature