Cara Mengatasi Leverage Browser Caching di Blogger dan Wordpress

Cara mengatasi lavarege browser caching

Cara Mengatasi Leverage Browser Caching di Blogger dan Wordpress - Apa sih fungsi dari script Leverage Browser Caching? Fungsi nya adalah mengatasi kecepatan blog kamu yang lambat.

Nah, semoga dengan memasukan script ini ke blog kamu, masalah kamu akan segera teratasi yah.

Cara Mengatasi Leverage Browser Caching di Blogger dan Wordpress


Untuk Blogger


1. login Blogger > Tema > Edit Tema > Salin kode di bawah ini tepat di bawah kode <head>

<include expiration='7d' path='*.css'/>
<include expiration='7d' path='*.js'/>
<include expiration='3d' path='*.gif'/>
<include expiration='3d' path='*.jpeg'/>
<include expiration='3d' path='*.jpg'/>
<include expiration='3d' path='*.png'/>

2. Klik Simpan

Untuk Wordpress

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##

3. Selesai

Related Posts

Load comments

Comments