Hey,
google sowie raven meldet mir ich solle doch gzip verwenden. Das deflate_module ist in apache2 aktiviert, muss ich noch weitere Einstellungen in Contao vornehmen damit dies aktiviert wird ?
Druckbare Version
Hey,
google sowie raven meldet mir ich solle doch gzip verwenden. Das deflate_module ist in apache2 aktiviert, muss ich noch weitere Einstellungen in Contao vornehmen damit dies aktiviert wird ?
Versuch mal, in der ".htaccess" die Abfrage des "mod_filter" Moduls auszukommentieren:
Code:##
# Gzip compression
# @see https://github.com/h5bp/html5-boilerplate
##
<IfModule mod_deflate.c>
# <IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
# </IfModule>
</IfModule>
Das ist nicht kommentiert:
gibt es sonst noch etwas was ich umstellen muss oder scheint hier dann etwas nicht zu funktionieren ?Code:##
# Gzip compression
# @see https://github.com/h5bp/html5-boilerplate
##
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>
</IfModule>
Nein, versuch einfach mal die zwei genannten Zeilen auszukommentieren.
ups, danke
hat leider keinen unterschied erbracht. Wie kann ich denn nachschauen ob das gzip läuft und das es vielleicht an dem pagespeed ding von google liegt ?
versuch es mal mit folgenden Einträgen in der htaccess.
Code:AddEncoding gzip .gz
<FilesMatch "\.js\.gz$">
AddType "text/javascript" .gz
</FilesMatch>
<FilesMatch "\.css\.gz$">
AddType "text/css" .gz
</FilesMatch>
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]