User tests: Successful: Unsuccessful:
Add support for brotli gz compression in htaccess.txt
From Wikipedia:
Brotli is a lossless data compression algorithm developed by Google. It uses a combination of the general-purpose LZ77 lossless compression algorithm, Huffman coding and 2nd-order context modelling. Brotli is primarily used by web servers and content delivery networks to compress HTTP content, making internet websites load faster. A successor to gzip, it is supported by all major web browsers and has become increasingly popular, as it provides better compression than gzip.
Webservers that use brotli and have Joomla's htaccess enabled will fail the website in HTTPS unless you comment/delete the code block related to GZIP.
After the change, the problem no longer occurs.
htaccess.txt
to .htaccess
Joomla works properly
Joomla in HTTP works correctly.
Joomla in HTTPS does not load the CSS and JS resources, and investigating the error in the console is: ERR_CONTENT_DECODING_FAILED
Joomla still works properly
Joomla works properly
ServerPlan uses brotli.
Thanks to ServerPlan for supporting the tests and finding the solution
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Labels |
Added:
PR-4.4-dev
|
Title |
|
INFO: It seems that with ngix instead of apache the problem does not occur
I have tested this item ✅ successfully on 33d2ff1
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-21 15:01:44 |
Closed_By | ⇒ | laoneo |
Thanks!
Hi @brianteeman - we need a Post-Installation Message for the change in the htaccess.txt - as a native speaker could you suggest a message? As we are building the RC release this evening this is urgent. Sorry for the hurry. Please ping me if you are busy. Thank you
I have tested this item ✅ successfully on 33d2ff1
I have setup brotli compression on my own server (you need to disable gzip - and you need https!) and the change in the .htaccess fixed the issue with not loaded css and js. brotli see here: https://www.brotli.pro/enable-brotli/servers/apache/
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43055.