Optimized Brotli files not served when CSS/JS aggregation enabled

Created on 25 July 2023, 11 months ago
Updated 31 July 2023, 11 months ago

It looks like AdvAgg is broken. I am using Drupal 9.5.10 on PHP 7.4.33 and tested with both version 6.0.0-alpha1 and 5.0.0.

By accident I discovered Brotli versions are not served to my browser.

After digging into this, it came out files in /sites/default/files/(js|css) were being served instead of the files inside /sites/default/files/(js|css)/optimized/.

When cleaning cache and regenerating all files it looks like AdvAgg is generating all optimized JS and CSS files well, as well as its Gzip and Brotli versions.

If I disable JS and CSS aggregation on the page /admin/config/development/performance, many CSS and JS files inside the optimized directory get being served as intended. However, if I re-enable both options to get the aggregation versions, it reverts to the files inside /sites/default/files/(js|css)

It looks like the bandwidth optimization aggregation logic in core somehow breaks AdvAgg.

πŸ› Bug report
Status

Active

Version

6.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024