Blog

Cara Mempercepat Kecepatan Blog

Cara Mempercepat Kecepatan Blog

Kecepatan blog sangat berpengaruh pada sebuah interaksi user dengan blognya. Oleh karena itu, perlu trick agar speed/kecepatan blog bertambah cepat dan maksimal. Silakan ikuti cara berikut ini :

  • Buka/buat file .htaccess di root domain hosting-nya dan tambahkan¬† kode dibawah ini :
Kode Speed Blog/Website

mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png
AddType text/css .css

  • Save file .htaccess dan refresh ulang blognya

Leave a Comment

Your email address will not be published. Required fields are marked *