We just witnessed this same behavior multiple times this week using Premium Verizon CDN - it's not related to app deployments or file size (<1MB).
The edge pops cache a 0 content length payload in specific regions. When navigating to the resource in chrome it downloads the file (content-type is incorrectly set to application/octet-stream) of 0 bytes. The only solution is to purge the profile which forces a re-validation to the origin and the situation is resolved.
This does not seem to be caused by origin timeouts or errors - we have no data logs corresponding to the outage timelines.
We are considering migrating to another CDN provider - there is nothing our app is doing improperly. We are testing shortening our TTL from 10m to 5m to see if the situation improves.
Update - we did find a route config that was responding with 0 byte 200 which the CDN was caching - this was a bug in our routing proxy, not the CDN or the app. Good luck to others!
Hi @SaiKishor-MSFT , my apology for the late response.
I've just come back from my holiday.
I have checked the link you've sent. However, it does not help much since all of our files are under 5 MB.
For more information:
Thank you very much
@Quan Van Mai Do you see this happen to a specific type of file or all files and any specific region?
Hi @SaiKishor-MSFT ,
It always happens to the main.js file of Angular. This file is about 1 MB after compression with gzip.
Sometimes we have it in Weast EU, sometimes it happens in South East Asia.
I doubt that it might from network corruption and the file was not loaded completely in the CDN cache.
Let me know. Thanks
@Quan Van Mai The file may not have been loaded properly into the cache as you mentioned. I would suggest you to purge the data and upload with updated content. Please try this and let us know if it works. Thank you!
@Quan Van Mai Is there any update on this issue? Thanks!
Sign in to comment