Content Encoding Error - firefox not able to load core javascript libraries when not preprocessed

Created on 2 May 2024, 4 months ago
Updated 16 May 2024, 4 months ago

Problem/Motivation

I am using Ubuntu 22.04, firefox 125.0.3 (latest version) and Drupal 10.2.4, PHP 8.2.

Steps to reproduce

1. Turn off JS aggregation / preprocessing with `$config['system.performance']['js']['preprocess'] = FALSE;`
2. Load any administration page
3. Javascript is not loaded / functioning on page because of errors
4. Open console and note that no core javascript file has loaded successfully.

Errors in developer tools console:

Loading failed for the <script> with source “http://<removed>/core/assets/vendor/underscore/underscore-min.js?v=1.13.6”. admin:528:73
Loading failed for the <script> with source “http://<removed>/core/assets/vendor/once/once.min.js?v=1.0.1”. admin:529:60
Loading failed for the <script> with source “http://<removed>/core/assets/vendor/backbone/backbone-min.js?v=1.5.0”. admin:530:68
Loading failed for the <script> with source “http://<removed>/core/misc/drupalSettingsLoader.js?v=10.2.4”. admin:531:59
Loading failed for the <script> with source “http://<removed>/core/misc/drupal.init.js?v=10.2.4”. admin:533:50
Loading failed for the <script> with source “http://<removed>/core/assets/vendor/jquery.ui/ui/version-min.js?v=10.2.4”.

If I load one of the above files I get the following Firefox error page:

And then every other library that relies on the above has errors.

To rectify I need to turn back on preprocessing and the JS loads correctly again.

This error does not occur when using Chrome.

🐛 Bug report
Status

Closed: works as designed

Version

10.2

Component
Asset library 

Last updated 1 day ago

No maintainer
Created by

🇦🇺Australia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024