Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load resource: net::ERR_CONTENT_DECODING_FAILED error while loading laravel css file [closed]

While executing a web page after loading HTML, CSS file is not loading & not applying the UI changes.

In browser console it is showing the following error Failed to load resource: net::ERR_CONTENT_DECODING_FAILED

One more issue is "that error is occuring only for the first time", If I reload the page the error will be gone & will load the CSS properly.

One solution I found after browsing is to enable gzip encoded, That is already in place.

Console error message

like image 936
jeevanreddy Avatar asked Jun 05 '26 00:06

jeevanreddy


1 Answers

This is a bit of an annoying error. But I'll do my best Lacking what information I have on your error exactly.

What is this error?

This can happen when an HTTP request's headers say that the content is gzip encoded, but it isn't. It doesn't always happen, as you've discovered. But happens occasionally.

What can you do?

  1. Check to see if Route::get('/') pointing to the correct controller/code?
  2. check to see if output_compression is added to your php.ini Add this code: zlib.output_compression = On
  3. try going to /config/config.php(this may not be right in your case) and set the following to false $config['compress_output'] = FALSE;

Further reading

(more about what the error actually is)

https://superuser.com/questions/172951/chrome-error-330-neterr-content-decoding-failed

https://www.solvusoft.com/en/errors/runtime-errors/google-inc/google-chrome/330-chrome-error-330/

like image 101
Scott Chambers Avatar answered Jun 07 '26 22:06

Scott Chambers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!