Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12489

WP Engine – Speed up code found on the web

$
0
0

Hello!

I have found a piece of code here: http://www.markdescande.com/speed-up-wp-engine/ – as I see there are a few things new compared to the code posted here. Any coments on this Ed? :) Could we all benefit from it?

<ifModule mod_php5.c>
php_value zlib.output_compression on
</ifModule>
SetOutputFilter DEFLATE
<IfModule mod_headers.c>
Header set Connection keep-alive
Header append Vary User-Agent env=!dont-vary
</IfModule>

<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 14 days"
Header set Cache-Control "public"
</IfModule>

<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>

<IfModule mod_mime.c>
AddType application/x-javascript .js
AddType text/css .css
</IfModule>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript
</IfModule>

<IfModule mod_setenvif.c>
SetEnvIfNoCase Request_URI \.(?:rar|zip)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:avi|mov|mp4)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
</IfModule>
  • This topic was modified 12 hours, 32 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This topic was modified 12 hours, 29 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This topic was modified 12 hours, 25 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This topic was modified 12 hours, 25 minutes ago by Avatar of AITpro Admin AITpro Admin.
  • This topic was modified 12 hours, 24 minutes ago by Avatar of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12489