Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Jan 2019 at 23:31 UTC
Updated:
10 Jun 2021 at 17:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mfbComment #3
ayesh commentedI had Brotli enabled all my servers but never ran into this problem because I was compressing everything on the fly and didn't use pre-compressed gzip files (additional disk access didn't outweigh compression overhead).
To provide more information to others, this problem occurs only if you serve pre-compressed Brotli or Gzip files with a rewrite rule. Enabling Brotli with a filter (for example with
AddOutputFilterByType BROTLI_COMPRESS application/json) does not double-encode the response.If you serve .gz files with a rewrite rule, the patch fixes it. I call we can mark this RTBC if a few others can confirm.
Comment #4
d13r commentedThe patch worked for me - thanks.
Comment #5
andypostBtw advagg allows it, so better to add support for it to core
Comment #6
anybodyPatch from #2 works perfectly and solved it equally to Drupal 8. We should get this in as long as Drupal 7 is still maintained. Thank you all!
Here you can find the committed Drupal 8 patch / issue: #2960808: Disable brotli compression of pre-compressed CSS and JS
Comment #7
mcdruid commentedLGTM.
Would be good to combine this in the same release as any other .htaccess changes we're working on (e.g. #2768921: Backport server configuration code from SA-CORE-2016-003 to Drupal 7)
Comment #8
fabianx commentedRTBC + 1
Comment #10
mcdruid commentedThankingyou!