{"id":146,"date":"2010-12-24T13:01:05","date_gmt":"2010-12-24T11:01:05","guid":{"rendered":"http:\/\/rexxer.kharkov.ru\/?p=146"},"modified":"2010-12-24T13:01:05","modified_gmt":"2010-12-24T11:01:05","slug":"apache-compression","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=146","title":{"rendered":"Apache &#8211; compression"},"content":{"rendered":"<p>1. \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c mod_deflate.so<\/p>\n<p>2. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<p><span><span style=\"color: #000080\"><\/p>\n<pre><\/pre>\n<p><\/span><\/span><\/p>\n<blockquote><p>&lt;IfModule deflate_module&gt;<\/p>\n<p>SetOutputFilter DEFLATE<br \/>\n# \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c Netscape 4.x, Netscape 4.06-4.08,<\/p>\n<p>BrowserMatch ^Mozilla\/4 gzip-only-text\/html<\/p>\n<p>BrowserMatch ^Mozilla\/4.0[678] no-gzip<\/p>\n<p># MSIE \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439\u0441\u044f \u043f\u043e\u0434 Netscape \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c<\/p>\n<p>BrowserMatch bMSIE !no-gzip !gzip-only-text\/html<\/p>\n<p># \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0436\u0430\u0442\u0438\u0435<\/p>\n<p>Header append Vary User-Agent env=!dont-vary<br \/>\n# \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0435 \u0442\u0438\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432<\/p>\n<p>SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico|swf|exe|t?gz|zip|bz2|sit|rar|7z|pdf)$ <\/p>\n<p>no-gzip dont-vary<\/p>\n<p>&lt;\/IfModule&gt;<\/p><\/blockquote>\n<p><span><span style=\"color: #000080\"><\/p>\n<pre><\/pre>\n<p><\/span><\/span><\/p>\n<p><span style=\"font-weight: bold\">3. \u0412 \u0441\u0435\u043a\u0446\u0438\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e: SetOutputFilter DEFLATE<\/span><\/p>\n<p><span style=\"font-weight: bold\">\u042f \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u0438 \u0442\u0430\u043a \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/span><\/p>\n<p><span style=\"font-weight: bold\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u0444\u0430\u0439\u0440\u0431\u0430\u0433\u043e\u043c, \u043b\u0438\u0431\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439: <\/span><\/p>\n<p><code>wget -S --spider http:\/\/localhost --header \"Accept-Encoding: gzip,deflate\" -o \/dev\/stdout | grep -i content<\/code><\/p>\n<p><span><span style=\"color: #000080\"><\/p>\n<pre><\/pre>\n<p><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c mod_deflate.so 2. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433: &lt;IfModule deflate_module&gt; SetOutputFilter DEFLATE # \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c Netscape 4.x, Netscape 4.06-4.08, BrowserMatch ^Mozilla\/4 gzip-only-text\/html BrowserMatch ^Mozilla\/4.0[678] no-gzip # MSIE \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439\u0441\u044f \u043f\u043e\u0434 Netscape \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c BrowserMatch bMSIE !no-gzip !gzip-only-text\/html # \u0434\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0436\u0430\u0442\u0438\u0435 Header append Vary User-Agent env=!dont-vary # \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0435 \u0442\u0438\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432 SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico|swf|exe|t?gz|zip|bz2|sit|rar|7z|pdf)$ no-gzip dont-vary &lt;\/IfModule&gt; 3. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,13],"tags":[],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-novosti"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":0,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}