Open Orgoth opened 7 months ago
https://github.com/joomla/joomla-cms/issues/38028
OpenLiteSpeed ignores the
The Google Group is also dead in the water, the developers don't care at all.
Swiched back to nginx and apache, since the developers are completely unable to fix such a simple problem.
Simply ignore all ifmodule blocks which are not rewrite to prevent breaking applications like joomla.
Example:
<IfModule mod_headers.c>
# Serve gzip compressed CSS files if they exist
# and the client accepts gzip.
RewriteCond "%{HTTP:Accept-encoding}" "gzip"
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]
# Serve gzip compressed JS files if they exist
# and the client accepts gzip.
RewriteCond "%{HTTP:Accept-encoding}" "gzip"
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
# Serve correct content types, and prevent mod_deflate double compression.
RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1,E=no-brotli:1]
RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1,E=no-brotli:1]
<FilesMatch "(\.js\.gz|\.css\.gz)$">
# Serve correct encoding type.
Header set Content-Encoding gzip
# Force proxies to cache gzipped &
# non-gzipped css/js files separately.
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
At the moment we are recommending all customers to not use openlitespeed at all.
Joomla 5 delivers already compressed files, but openlitespeed does not set the headers as it should be.
/public_html/media/plg_system_guidedtours/js/guidedtours.min.js.gz /public_html/media/plg_system_guidedtours/js/guidedtours.min.js
Openlitespeed reads the .gz and delivers the content without the needed header "Content-Encoding: gzip" Changing the tuning settings does not help in any way.