We try to configure Azure CDN on Microsoft Standard pricing to allow us rewrite Url to route all application routing to ./index.html. How to setup rules engine to rewrite url but left all js file as it is? All examples in google show how to do this on premium pricing but we like to do this on Microsoft Standard it is possible?
Azure CDN allows you to compress files to improve file transfer speed and increase application performance by reducing a file's size. It helps you to reduce bandwidth costs and provide a responsive experience to users.
Content Delivery Network helps reduce latency and improve performance for high-bandwidth content by distributing user requests and serving content directly from edge servers. This brings the content closer to users and sends less traffic to the origin point, delivering superior online experiences.
The number of Azure Content Delivery Network profiles that can be created in an Azure subscription is 25.
I finally got a working answer from Microsoft Support on this.
They said that the Microsoft CDN Rules Engine does not support URL file extension
Not Any
and instead I should check for the length of the file extension.
URL file extension
Not greater than
0
No transform
URL rewrite
/
/index.html
No
This solution works for me. Make sure to purge your cdn cache before testing.
If none of your page URLs contain a dot, you can set a rule as follows:
Not Any
(i.e. there is no extension)/
index.html
This will rewrite any URL without a dot in the trailing section to index.html.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With