Wednesday, July 10, 2013

Mempercepat Loading Situs Dengan Konfigurasi .htaccess

Tambahkan kode berikut ini setelah/dibawah kode # END WordPress

# ETags
Header unset ETag
FileETag None

# Expire images header
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000

# Gzip Compress
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>

0 comments:

Tags

Visitor