{"id":4338,"date":"2016-11-21T14:08:23","date_gmt":"2016-11-21T14:08:23","guid":{"rendered":"http:\/\/www.deuzebranaweb.com.br\/?p=4338"},"modified":"2016-11-21T14:08:23","modified_gmt":"2016-11-21T14:08:23","slug":"apache-modulo-deflate-economia-de-banda","status":"publish","type":"post","link":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/2016\/11\/21\/apache-modulo-deflate-economia-de-banda\/","title":{"rendered":"Apache + m\u00f3dulo deflate = economia de banda"},"content":{"rendered":"<p>TESTAR A VELOCIDADE DEPOIS QUE FIZER AS MUDAN\u00c7AS NO .HTACCES:<\/p>\n<p>https:\/\/developers.google.com\/speed\/pagespeed\/insights\/<\/p>\n<p>&nbsp;<\/p>\n<p>Adicione as linhas abaixo no .htacces:<\/p>\n<p><strong>Otimizando Performance com Compacta\u00e7\u00e3o Gzip\/Deflate&nbsp;<\/strong><br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?site.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/site.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/site.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?site2.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/site2.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/site2.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?pepedinamico.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/pepedinamico.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/pepedinamico.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?testeedy.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/testeedy.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/testeedy.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?analujf.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/analujf.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/analujf.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<br \/>\n# BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?novo1.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/novo1.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/novo1.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<\/p>\n<p># BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?amicen.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/amicen.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/amicen.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<\/p>\n<p># BEGIN WPCache<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteCond %{HTTP_HOST} ^(www\\.)?amicen.edtmg.com.br [NC]<br \/>\nRewriteCond %{REQUEST_METHOD} !POST<br \/>\nRewriteCond %{QUERY_STRING} !.*=.*<br \/>\nRewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$<br \/>\nRewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{HTTP:Profile} !^[a-z0-9\\&#8221;]+ [NC]<br \/>\nRewriteCond %{DOCUMENT_ROOT}\/wp-content\/cache\/amicen.edtmg.com.br\/$1\/index.html -f<br \/>\nRewriteRule ^(.*) &#8220;\/wp-content\/cache\/amicen.edtmg.com.br\/$1\/index.html&#8221; [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WPCache<\/p>\n<p>&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/<br \/>\nRewriteRule ^index\\.php$ &#8211; [L]<br \/>\n#RewriteOptions inherit<br \/>\n#RewriteCond %{HTTP_HOST} ^.*$<br \/>\n#RewriteRule ^wp\\-login\\.php$ &#8220;http\\:\\\/\\\/www\\.edutec\\.com\\.br\\\/manutencao\\.html&#8221; [R=302,L]<\/p>\n<p>#RewriteCond %{HTTP_HOST} ^.*$<br \/>\n#RewriteRule ^wp\\-admin$ &#8220;http\\:\\\/\\\/www\\.edutec\\.com\\.br\\\/manutencao\\.html&#8221; [R=302,L]<br \/>\n#RewriteRule ^wp\\-admin$ &#8220;http\\:\\\/\\\/www\\.edutec\\.com\\.br\\\/manutencao\\.html&#8221; [R=301,L]<\/p>\n<p># uploaded files<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?files\/(.+) wp-includes\/ms-files.php?file=$2 [L]<\/p>\n<p># add a trailing slash to \/wp-admin<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?wp-admin$ $1wp-admin\/ [R=301,L]<\/p>\n<p>RewriteCond %{REQUEST_FILENAME} -f [OR]<br \/>\nRewriteCond %{REQUEST_FILENAME} -d<br \/>\nRewriteRule ^ &#8211; [L]<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(wp-(content|admin|includes).*) $2 [L]<br \/>\nRewriteRule ^([_0-9a-zA-Z-]+\/)?(.*\\.php)$ $2 [L]<br \/>\nRewriteRule . index.php [L]<\/p>\n<p>&lt;\/IfModule&gt;<\/p>\n<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nOptions -Indexes<br \/>\nOptions +FollowSymlinks<br \/>\n#deny from all<br \/>\nallow from 10.20.42.0\/24<br \/>\nallow from 10.20.43.0\/24<br \/>\nallow from 201.76.209.0\/24<br \/>\nallow from 201.76.209.22\/24<br \/>\nRewriteCond %{REMOTE_ADDR} !^201\\.76\\.209\\.22$<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&lt;Files 403.shtml&gt;<br \/>\norder allow,deny<br \/>\nallow from all<br \/>\n&lt;\/Files&gt;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&lt;Files ~ &#8220;^\\.(htaccess|htpasswd)$&#8221;&gt;<br \/>\ndeny from all<br \/>\n&lt;\/Files&gt;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p># 480 weeks<br \/>\n&lt;FilesMatch &#8220;\\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=290304000, public&#8221;<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p># 2 DAYS<br \/>\n&lt;FilesMatch &#8220;\\.(xml|txt)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=172800, public, must-revalidate&#8221;<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p># 2 HOURS<br \/>\n&lt;FilesMatch &#8220;\\.(html|htm)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=7200, must-revalidate&#8221;<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p>&lt;ifModule mod_gzip.c&gt;<br \/>\nmod_gzip_on Yes<br \/>\nmod_gzip_dechunk Yes<br \/>\nmod_gzip_item_include file \\.(html?|txt|css|js|php|pl)$<br \/>\nmod_gzip_item_include handler ^cgi-script$<br \/>\nmod_gzip_item_include mime ^text\/.*<br \/>\nmod_gzip_item_include mime ^application\/x-javascript.*<br \/>\nmod_gzip_item_exclude mime ^image\/.*<br \/>\nmod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*<br \/>\n&lt;\/ifModule&gt;<\/p>\n<p>#mod_deflate<br \/>\n&lt;ifmodule mod_deflate.c&gt;<br \/>\nAddOutputFilterByType DEFLATE text\/text text\/html text\/plain text\/xml text\/css application\/x-javascript application\/javascript text\/javascript<br \/>\n&lt;\/ifmodule&gt;<\/p>\n<p>&lt;IfModule mod_deflate.c&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\nSetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png)$ no-gzip dont-vary<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>&lt;IfModule mod_deflate.c&gt;<br \/>\nAddOutputFilterByType DEFLATE text\/plain<br \/>\nAddOutputFilterByType DEFLATE text\/html<br \/>\nAddOutputFilterByType DEFLATE text\/xml<br \/>\nAddOutputFilterByType DEFLATE text\/css<br \/>\nAddOutputFilterByType DEFLATE text\/javascript<br \/>\nAddOutputFilterByType DEFLATE application\/xml<br \/>\nAddOutputFilterByType DEFLATE application\/xhtml+xml<br \/>\nAddOutputFilterByType DEFLATE application\/rss+xml<br \/>\nAddOutputFilterByType DEFLATE application\/javascript<br \/>\nAddOutputFilterByType DEFLATE application\/x-javascript<br \/>\n&lt;\/IfModule&gt;<br \/>\n&lt;Files *.html&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.css&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.js&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.jpg&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.gif&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.jpeg&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.png&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.swf&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.txt&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<br \/>\n&lt;Files *.ico&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/Files&gt;<\/p>\n<p>&lt;ifmodule mod_deflate.c=&#8221;&#8221;&gt;<br \/>\n&lt;filesmatch .(.jpg|.gif|.png|.tiff|.ico|js|css)$=&#8221;&#8221;&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\n&lt;\/filesmatch&gt;<br \/>\n&lt;\/ifmodule&gt;<\/p>\n<p>&lt;IfModule mod_deflate.c&gt;<br \/>\nAddOutputFilterByType DEFLATE text\/html text\/plain text\/xml<br \/>\n# Netscape 4.X<br \/>\nBrowserMatch ^Mozilla\/4 gzip-only-text\/html<br \/>\n# Netscape 4.06-4.08<br \/>\nBrowserMatch ^Mozilla\/4\\.0[678] no-gzip<br \/>\n# MSIE<br \/>\nBrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html<br \/>\n&lt;\/IfModule&gt;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&lt;IfModule mod_expires.c&gt;<br \/>\n# Habilita a expira\u00e7\u00e3o<br \/>\nExpiresActive On<br \/>\n&lt;\/IfModule&gt;<br \/>\n# 1 ANO<br \/>\n&lt;FilesMatch &#8220;\\.(ico|pdf|flv)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=29030400, public&#8221;<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n# 1 SEMANA<br \/>\n&lt;FilesMatch &#8220;\\.(jpg|jpeg|png|gif|swf)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=604800, public&#8221;<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n# 2 DIAS<br \/>\n&lt;FilesMatch &#8220;\\.(xml|txt|css|js)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=172800, proxy-revalidate&#8221;<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n# 1 MINUTO<br \/>\n&lt;FilesMatch &#8220;\\.(html|htm|php)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=60, private, proxy-revalidate&#8221;<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n&lt;IfModule mod_deflate.c&gt;<br \/>\n&lt;FilesMatch &#8220;\\.(js|css|jpg|png|gif|ico|php|html|htm)$&#8221;&gt;<br \/>\n&lt;ifModule mod_filter.c&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\nAddOutputFilterByType DEFLATE text\/css text\/javascript application\/x-javascript text\/html text\/plain text\/xml image\/x-icon<br \/>\n&lt;\/IfModule&gt;<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;\/IfModule&gt;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nRewriteEngine on<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/amicen.com.br\/.*$ [NC] #este site est\u00e1 liberado a usar (o seu site no caso)<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/developers.google.com\/.*$ [NC] #este site est\u00e1 liberado a usar<br \/>\nRewriteCond %{HTTP_REFERER} !^http:\/\/www.google.com.br\/.*$ [NC] #liberar o google para usar as suas imagens<br \/>\nRewriteRule .*\\.(jpg|jpeg|gif|png|bmp|php|js|swf)$ \u2013 [F,NC]<br \/>\n#Neste caso, se algu\u00e9m que n\u00e3o est\u00e1 na lista acima tentar usar as suas imagens direto do seu site ou usar os seus scripts, mostrar\u00e1 uma tela com erro e as imagens n\u00e3o ser\u00e3o mostradas.<\/p>\n<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n#For\u00e7a a utilizar Cache-Control e Expires header<br \/>\n&lt;IfModule mod_headers.c&gt;<br \/>\nHeader unset ETag<br \/>\n&lt;\/IfModule&gt;<br \/>\nFileETag None<br \/>\n&lt;IfModule mod_expires.c&gt;<br \/>\nExpiresActive on<br \/>\nExpiresDefault &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType text\/cache-manifest &#8220;access plus 0 seconds&#8221;<br \/>\n# Html<br \/>\nExpiresByType text\/html &#8220;access plus 0 seconds&#8221;<br \/>\n# Data<br \/>\nExpiresByType text\/xml &#8220;access plus 0 seconds&#8221;<br \/>\nExpiresByType application\/xml &#8220;access plus 0 seconds&#8221;<br \/>\nExpiresByType application\/json &#8220;access plus 0 seconds&#8221;<br \/>\n# Feed<br \/>\nExpiresByType application\/rss+xml &#8220;access plus 1 hour&#8221;<br \/>\nExpiresByType application\/atom+xml &#8220;access plus 1 hour&#8221;<br \/>\n# Favicon<br \/>\nExpiresByType image\/x-icon &#8220;access plus 1 week&#8221;<br \/>\n# Media: images, video, audio<br \/>\nExpiresByType image\/gif &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType image\/png &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType image\/jpg &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType image\/jpeg &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType video\/ogg &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType audio\/ogg &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType video\/mp4 &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType video\/webm &#8220;access plus 1 month&#8221;<br \/>\n# HTC files<br \/>\nExpiresByType text\/x-component &#8220;access plus 1 month&#8221;<br \/>\n# Webfonts<br \/>\nExpiresByType application\/x-font-ttf &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType font\/opentype &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType application\/x-font-woff &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType image\/svg+xml &#8220;access plus 1 month&#8221;<br \/>\nExpiresByType application\/vnd.ms-fontobject &#8220;access plus 1 month&#8221;<br \/>\n# CSS \/ JS<br \/>\nExpiresByType text\/css &#8220;access plus 1 year&#8221;<br \/>\nExpiresByType application\/javascript &#8220;access plus 1 year&#8221;<br \/>\nExpiresByType application\/x-javascript &#8220;access plus 1 year&#8221;<br \/>\n&lt;\/IfModule&gt;<br \/>\n#For\u00e7a o IE a sempre carregar utilizando a \u00faltima vers\u00e3o dispon\u00edvel<br \/>\n&lt;IfModule mod_headers.c&gt;<br \/>\nHeader set X-UA-Compatible &#8220;IE=Edge,chrome=1&#8221;<br \/>\n&lt;FilesMatch &#8220;\\.(js|css|gif|png|jpeg|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$&#8221; &gt;<br \/>\nHeader unset X-UA-Compatible<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n#Cache de navegador \u2013 Definir tempo de expira\u00e7\u00e3o (segundos)<br \/>\n&lt;ifModule mod_expires.c&gt;<br \/>\nExpiresActive On<br \/>\nExpiresDefault A0<br \/>\nExpiresByType image\/gif A604800<br \/>\nExpiresByType image\/jpeg A604800<br \/>\nExpiresByType image\/png A604800<br \/>\nExpiresByType text\/css A604800<br \/>\nExpiresByType text\/javascript A604800<br \/>\nExpiresByType application\/x-javascript A604800<br \/>\n&lt;\/ifModule&gt;<br \/>\n#Cache de navegador \u2013 Definir controle de cache (segundos)<br \/>\n&lt;IfModule mod_headers.c&gt;<br \/>\n&lt;FilesMatch &#8220;\\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|xml|woff)$&#8221;&gt;<br \/>\nHeader set Cache-Control &#8220;max-age=604800, public&#8221;<br \/>\nHeader append Vary User-Agent env=!dont-vary<br \/>\nHeader append Vary Accept-Encoding<br \/>\nHeader unset Pragma<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n#Desabilitar execu\u00e7\u00e3o de certos Scripts<br \/>\nOptions -ExecCGI<br \/>\nAddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi<\/p>\n<p>#Comprimir arquivos do site para consumir menos banda<br \/>\n&lt;IfModule mod_deflate.c&gt;<br \/>\n&lt;FilesMatch &#8220;\\.(js|css|jpg|png|gif|ico|php|html|htm)$&#8221;&gt;<br \/>\n&lt;ifModule mod_filter.c&gt;<br \/>\nSetOutputFilter DEFLATE<br \/>\nAddOutputFilterByType DEFLATE text\/css text\/javascript application\/x-javascript text\/html text\/plain text\/xml image\/x-icon<br \/>\n&lt;\/IfModule&gt;<br \/>\n&lt;\/FilesMatch&gt;<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>&lt;IfModule mod_deflate.c&gt;<br \/>\n# Insert filter<br \/>\nAddOutputFilterByType DEFLATE text\/plain<br \/>\nAddOutputFilterByType DEFLATE text\/xml<br \/>\nAddOutputFilterByType DEFLATE application\/xhtml+xml<br \/>\nAddOutputFilterByType DEFLATE text\/css<br \/>\nAddOutputFilterByType DEFLATE application\/xml<br \/>\nAddOutputFilterByType DEFLATE image\/svg+xml<br \/>\nAddOutputFilterByType DEFLATE application\/rss+xml<br \/>\nAddOutputFilterByType DEFLATE application\/atom_xml<br \/>\nAddOutputFilterByType DEFLATE application\/x-javascript<br \/>\nAddOutputFilterByType DEFLATE application\/javascript<br \/>\nAddOutputFilterByType DEFLATE application\/x-httpd-php<br \/>\nAddOutputFilterByType DEFLATE application\/x-httpd-fastphp<br \/>\nAddOutputFilterByType DEFLATE application\/x-httpd-eruby<br \/>\nAddOutputFilterByType DEFLATE text\/html<\/p>\n<p>SetOutputFilter DEFLATE<\/p>\n<p># Netscape 4.x has some problems&#8230;<br \/>\nBrowserMatch ^Mozilla\/4 gzip-only-text\/html<\/p>\n<p># Netscape 4.06-4.08 have some more problems<br \/>\nBrowserMatch ^Mozilla\/4\\.0[678] no-gzip<\/p>\n<p># MSIE masquerades as Netscape, but it is fine<br \/>\n# BrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html<\/p>\n<p># NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48<br \/>\n# the above regex won&#8217;t work. You can use the following<br \/>\n# workaround to get the desired effect:<br \/>\nBrowserMatch \\bMSI[E] !no-gzip !gzip-only-text\/html<\/p>\n<p># Don&#8217;t compress images<br \/>\n#SetEnvIfNoCase Request_URI \\<br \/>\n#\\.(?:gif|jpe?g|png)$ no-gzip dont-vary<br \/>\n#&lt;\/IfModule&gt;<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n#Bloquear requisi\u00e7\u00e3o baseado no user-agent<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Bad Bot Blocker&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n##SetEnvIfNoCase User-Agent &#8220;Abonti|aggregator|AhrefsBot|asterias|BDCbot|BLEXBot|BuiltBotTough|Bullseye|BunnySlippers|ca\\-crawler|CCBot|Cegbfeieh|CheeseBot|CherryPicker|CopyRightCheck|cosmos|Crescent|discobot|DittoSpyder|DOC|DotBot|Download Ninja|EasouSpider|EmailCollector|EmailSiphon|EmailWolf|EroCrawler|Exabot|ExtractorPro|Fasterfox|FeedBooster|Foobot|Genieo|grub\\-client|Harvest|hloader|httplib|HTTrack|humanlinks|ieautodiscovery|InfoNaviRobot|IstellaBot|Java\/1\\.|JennyBot|k2spider|Kenjin Spider|Keyword Density\/0\\.9|larbin|LexiBot|libWeb|libwww|LinkextractorPro|linko|LinkScan\/8\\.1a Unix|LinkWalker|LNSpiderguy|lwp\\-trivial|magpie|Mata Hari|MaxPointCrawler|MegaIndex|Microsoft URL Control|MIIxpc|Mippin|Missigua Locator|Mister PiX|MJ12bot|moget|MSIECrawler|NetAnts|NICErsPRO|Niki\\-Bot|NPBot|Nutch|Offline Explorer|Openfind|panscient\\.com|PHP\/5\\.\\{|ProPowerBot\/2\\.14|ProWebWalker|Python\\-urllib|QueryN Metasearch|RepoMonkey|RMA|SemrushBot|SeznamBot|SISTRIX|sitecheck\\.Internetseer\\.com|SiteSnagger|SnapPreviewBot|Sogou|SpankBot|spanner|spbot|Spinn3r|suzuran|Szukacz\/1\\.4|Teleport|Telesoft|The Intraformant|TheNomad|TightTwatBot|Titan|toCrawl\/UrlDispatcher|True_Robot|turingos|TurnitinBot|UbiCrawler|UnisterBot|URLy Warning|VCI|WBSearchBot|Web Downloader\/6\\.9|Web Image Collector|WebAuto|WebBandit|WebCopier|WebEnhancer|WebmasterWorldForumBot|WebReaper|WebSauger|Website Quester|Webster Pro|WebStripper|WebZip|Wotbox|wsr\\-agent|WWW\\-Collector\\-E|Xenu|yandex|Zao|Zeus|ZyBORG|coccoc|Incutio|lmspider|memoryBot|SemrushBot|serf|Unknown|uptime files&#8221; bad_bot<br \/>\n##Deny from env=bad_bot<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;FIM Bad Bot Blocker&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nSetEnvIfNoCase ^User-Agent$ .*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures) HTTP_SAFE_BADBOT<br \/>\nSetEnvIfNoCase ^User-Agent$ .*(libwww-perl|aesop_com_spiderman) HTTP_SAFE_BADBOT<br \/>\nDeny from env=HTTP_SAFE_BADBOT<\/p>\n<p># Impedir todo HOTLINKING<br \/>\nOptions -Indexes<br \/>\nOptions +FollowSymlinks<br \/>\n#deny from all<\/p>\n<p>http:\/\/lorindo.com\/compressao-de-dados-gzip-zlib-deflate\/<\/p>\n<p>http:\/\/upmarketingdigital.com.br\/blog\/como-otimizar-a-velocidade-do-seu-site-com-a-ferramenta-pagespeed\/<\/p>\n<p>http:\/\/sobreit.blogspot.com.br\/2013\/12\/performance-com-compactacao-deflate-no.html<\/p>\n<p>http:\/\/gerandoblogs.com\/otimizar-wordpress\/<\/p>\n<p>https:\/\/br.wordpress.org\/plugins\/js-css-script-optimizer\/screenshots\/<\/p>\n<p>http:\/\/wiki.locaweb.com.br\/pt-br\/Habilitar_cache_via_htaccess<\/p>\n<p>http:\/\/clubetech.com.br\/aumentando-a-velocidade-do-seu-site-com-gzip-e-deflate\/<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/6724549\/caching-and-gzip-compression-by-htaccess<\/p>\n<p>https:\/\/www.vivaolinux.com.br\/artigo\/Apache-+-modulo-deflate-=-economia-de-banda<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TESTAR A VELOCIDADE DEPOIS QUE FIZER AS MUDAN\u00c7AS NO .HTACCES: https:\/\/developers.google.com\/speed\/pagespeed\/insights\/ &nbsp; Adicione as linhas abaixo no .htacces: Otimizando Performance com Compacta\u00e7\u00e3o Gzip\/Deflate&nbsp; # BEGIN WPCache &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase \/ RewriteCond %{HTTP_HOST} ^(www\\.)?edtmg.com.br [NC] RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_angie_page":false,"page_builder":"","footnotes":""},"categories":[5,19],"tags":[],"class_list":["post-4338","post","type-post","status-publish","format-standard","hentry","category-apache2","category-whmcapenel"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=4338"}],"version-history":[{"count":0,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/posts\/4338\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=4338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=4338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.deuzebranaweb.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=4338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}