Přihlásit se

Joomla 5.0.1 a 4.4.1 bezpečnostní vydání (29 lis 2023)

Joomla 5.0.1 a 4.4.1 je nyní k dispozici. Jedná se o bezpečnostní vydání pro Joomla 4.x. a 5.x.

ERR_CONTENT_DECODING_FAILED CSS a JS mod_headers Joomla! 4

06. čvn 2022 18:15 - 07. čvn 2022 13:02 #146480
Pokud Vaše stránky po nasazení SSL certifikátu v https nenačtou CSS a JS soubory, tedy nefunguje vše co je závislé na javascriptu např. editor, zakomentujte v souboru .htaccess tuto sekci:
Code:
<IfModule mod_headers.c>     # Serve gzip compressed CSS files if they exist     # and the client accepts gzip.     RewriteCond "%{HTTPS: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 "%{HTTPS:Accept-encoding}" "gzip"     RewriteCond "%{REQUEST_FILENAME}\.gz" -s     RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]     # Serve correct content types, and prevent mod_deflate double gzip.     RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]     RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]     <FilesMatch "(\.js\.gz|\.css\.gz)$">         # Serve correct encoding type.         Header append Content-Encoding gzip         # Force proxies to cache gzipped &         # non-gzipped css/js files separately.         Header append Vary Accept-Encoding     </FilesMatch> </IfModule>

Jde o defaultní .htaccess Joomla 4. Není to pravidlem na každém webhostingu.
Poděkovali: Cony

06. čvn 2022 19:58 - 07. čvn 2022 12:28 #146483
Odpověď od Linelabcz
Admin
Dívám se, že problém je již od dev verze až do stávající Joomla 4.1.4 viz issues.joomla.org/tracker/joomla-cms/35099
Ale v novém .htaccess už je k tomu komentář. "Úžasná" nápověda pro uživatele. :-)

Powered by Fórum