{"issue":{"created_at":"2011-11-29T07:41:04Z","state":"open","updated_at":"2011-11-29T07:41:12Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":7,"body":"Hallo.\n\nIch möchte vorschlagen, dass in die .htaccess Datei folgender Code aufgenommen wird:\n\n```\n<FilesMatch \"\\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$\">\nHeader set Cache-Control \"max-age=3024000, public\"\n</FilesMatch>\n```\n\nDamit werden die angegebene Dateien 5 Wochen lang gecached.\nDas wirkt sich positiv auf die Geschwindigkeit der Seite aus. Dieses Vorgehen wird auch von diversen Tools (Google PageSpeed oder YSlow) empfohlen!\n\n--- _Originally created by matze on December 15th, 2009, at 06:48pm (ID 1291)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2379963,"number":1291,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"}],"title":"Cache Control in .htaccess","closed_at":null,"html_url":"https://github.com/contao/test/issues/1291","url":"https://api.github.com/repos/contao/test/issues/1291","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T07:41:12Z","updated_at":"2011-11-29T07:41:12Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Nein, die Cachezeit bezieht sich nur auf das PHP-Dokument. Statische Ressourcen werden hingegen direkt vom Apache ausgeliefert, insofern ist der .htaccess-Eintrag schon der richtige Weg.\n\n--- _Originally created on December 17th, 2009, at 11:16am_","id":2919910,"url":"https://api.github.com/repos/contao/test/issues/comments/2919910"}}