0

The Problem is not loaded stylesheet because its MIME type, "text/html", is not "text/css".

We are using cdn on aws.

I added to below line on apache server.

AddType text/css .css AddType text/javascript .js

0

Assuming the file is coming directly from your server, just invalidate the file from the cloudfront cache file as well to pick up the new MIME time or just rename the css file, named versioning is recommended for css/js assets while using cloudfront

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy