- Issue created by @catch
- Merge request !7389Only use gzcompress if the zlib extension is available. β (Open) created by catch
- Status changed to Needs review
10 months ago 1:21pm 9 April 2024 - Status changed to RTBC
10 months ago 1:41pm 9 April 2024 - π¬π§United Kingdom catch
Normally yes but since the code in 11.x is identical and it's a trivial change, hoping not :) See what the committer who next finds this says.
- π«π·France andypost
Most of distros has zlib extension bundled into PHP sapi executable so it's tricky to build PHP without it.
Meantime thinking about how othe algo current and upcoming can be involved here.Brotli already in every browser so such places should be centralized somehow
- πΈπ°Slovakia coaston
Hi, does it mean with this patch I can upgrade to 10.2x without need to install extenstion for php?
(I have to contact server team so they can help me with but that would mean i can use the latest drupal now which is covered by security until php extension is installed by our server team.)
Or i am mistaken and still have to install extension first so need to stuck on 10.0x for a while?
- π¬π§United Kingdom catch
@coaston if you apply this patch, you'll be able to update, however you'll end up with very long query strings for CSS and JavaScript aggregates - this might be completely fine, but it might also run into hosting limits, will need some testing. I would recommend contacting your hosting support to ask for the extension to be installed anyway, since it will be better with that.
- π¬π§United Kingdom catch
@andypost definitely worth opening an issue to see if we can use brotli compression here if it's available, I think we could just have a couple of code branches depending on what's available.
- πΈπ°Slovakia coaston
Hi @catch.
Thank you. However in my case it would be quite difficult as we do have our own server which is not directly connected to internet. So new extension for php would require more complex approach but at least we do have some time with this workaround.
And regarding long strings of CSS - do you thing this module β can help in this case?
- π¬π§United Kingdom catch
@coaston @advagg won't help - it's made mostly irrelevant by the aggregation changes in 10.1.
π Only send libraries with aggregate URLs that have the aggregate type included Needs review will help a little bit.
- π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed 26e9f32dfa to 11.x and cfabdf59d3 to 10.3.x and 6c9babd449 to 10.2.x. Thanks!
-
alexpott β
committed 6c9babd4 on 10.2.x
Issue #3439647 by catch: Skip query string compression if zlib extension...
-
alexpott β
committed 6c9babd4 on 10.2.x
-
alexpott β
committed cfabdf59 on 10.3.x
Issue #3439647 by catch: Skip query string compression if zlib extension...
-
alexpott β
committed cfabdf59 on 10.3.x
- Status changed to Fixed
10 months ago 2:59pm 10 April 2024 -
alexpott β
committed 26e9f32d on 11.x
Issue #3439647 by catch: Skip query string compression if zlib extension...
-
alexpott β
committed 26e9f32d on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.