Background:
I am serving a react app through Azure CDN (standard Microsoft), with an Azure Storage Static Website as origin. On the CDN, I'm using a URL rewriting rule to write the react routes to index.html, as described here: https://stackoverflow.com/a/59585005
Problem:
I'm experiencing strange behaviour after purging the CDN (all content using '/*'). Some routes are returning the updated content and some are returning the old content. e.g. 'mydomain.com/' returns the new content, but 'mydomain.com/route' returns the old content.
How does Azure CDN behave when purging content for URL rewritten paths? Is there any additional handling/conditions that needs to be set?
E.g. for the Azure CDN Verizon offering, it seems it is needed to exclude purge requests by user-agent: https://github.com/Azure/azure-cli/issues/6722. Is there similar for the Microsoft offering?