Question
Getting a "Failed to load resource: net::ERR_CONTENT_DECODING_FAILED" on CDN assets
Loading a static website I get a
Failed to load resource: net::ERRCONTENTDECODING_FAILED
on the first load (and sometime at other time). When I refresh it’s all good.
I use Nginx, does that need to be setup for CDN? Do I need to load my CDN assets differently, this is how I use it on my site:
<link rel=“stylesheet” href=“https://finepine.sfo2.cdn.digitaloceanspaces.com/css/style.min.css”>
The website in question is https://finepine.ca
It loads ok sometime in chrome. In firefox when there is no cache the site doesn’t load on the first page load, then refresh show the site normally again.
Loading the assets locally instead of the CDN works, but I would like to resolve why I can’t use the CDN properly.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×