Azure CDN returns 404 and url source is not

I created the cdn service and set the source url to the azure website that runs the iis node that serves the NodeJS web application, when trying to access static resources cdn always returns 404 while the same path works when accessing to the resource through the source URL,

Anything I can skip here?

thanks!

+7
source share
4 answers

It turns out that it takes at least an hour until the contents are filled, during which time the CDN 404 is returned.

+7
source

In case anyone else encounters this stream, I built Azure CDN (Verizon Standard) and it took almost 24 hours for the images / files using the Endpoint Hostname.

Unfortunately, in my case, I thought that I was doing something wrong, so I constantly changed it, which probably delayed it. When I finally realized that I did everything right, I decided to wait.

+1
source

I had the same problem, but the reason for me was that the Azure CDN only served content on the /CDN path. Therefore, if you try to access something at http://yourdomain.com/here.jpg , you will get 404 (if you do not have a URL to recreate)

0
source

Based on article

A content delivery network (CDN) is a distributed network of servers that can efficiently deliver web content to users. CDNs store cached content on edge servers at presence points (POPs) that are close to end users to minimize latency.

The Azure Content Delivery Network (CDN) offers developers a global solution to quickly deliver high-throughput content to users by caching their content in strategically located physical sites around the world.

To speed up the process, you can simply log in to the Azure portal, go to the CDN profiles section, select your CDN and click "Clear" in the top menu. It should automatically update the contents of the cache for your endpoint, and you should not wait for hours. Hope it helps. Hurrah

0
source

All Articles