{"issue":{"created_at":"2011-11-29T19:34:03Z","state":"closed","updated_at":"2011-11-29T19:34:19Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":14,"body":"Bei einigen Hostern, wie z.B. 1und1, ist mod_deflate nicht vorhanden. Durch die Änderung in 2.9.1 an der .htaccess verliert man dadurch bei der Google Page Speed Bewertung 3 Punkte gegenüber 2.9.0. Um dies zu vermeiden, schlage ich folgende Änderung vor, die auf meinem 1und1-Account problemlos funktioniert:\n\n```\n<IfModule mod_deflate.c>\n\n  ##\n  # Use mod_deflate to compress JavaScript, CSS and XML files. Do not add\n  # PHP and HTML files, because those have already been compressed by Contao.\n  ##\n  <FilesMatch \"\\.(css|js|xml)$\">\n    SetOutputFilter DEFLATE\n  </FilesMatch>\n\n</IfModule>\n<IfModule !mod_deflate.c>\n  ##\n  # Compress .js and .css files\n  ##\n  AddEncoding gzip .gz\n  <FilesMatch \"\\.js\\.gz$\">\n    AddType \"text/javascript\" .gz\n  </FilesMatch>\n  <FilesMatch \"\\.css\\.gz$\">\n    AddType \"text/css\" .gz\n  </FilesMatch>\n  RewriteCond %{HTTP:Accept-encoding} gzip\n  RewriteCond %{REQUEST_FILENAME} \\.(js|css)$\n  RewriteCond %{REQUEST_FILENAME}.gz -f\n  RewriteRule ^(.*)$ $1.gz [QSA,L]\n</IfModule>\n```\n\nSprich ich kombiniere einfach die alte .htaccess mit der neuen und verwende je nach vorhandensein von mod_deflate die entsprechenden .htaccess-Regeln.\n\nRelated issues: #2411\n\n--- _Originally created by SunBlack on August 14th, 2010, at 08:49pm (ID 2437)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2391035,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":2437,"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/import/labels/Feature"},{"name":"frontend","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/frontend"}],"title":"Alternative Kompression bei fehlendem mod_deflate","closed_at":"2011-11-29T19:34:19Z","html_url":"https://github.com/contao/import/issues/2437","url":"https://api.github.com/repos/contao/import/issues/2437","milestone":{"created_at":"2011-11-29T15:29:54Z","state":"closed","due_on":null,"closed_issues":22,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":32,"description":"Contao 2.10.0 (minor release)","title":"2.10.0","url":"https://api.github.com/repos/contao/import/milestones/32","open_issues":0}},"action":"closed"}