Maaf, Anda mengaktifkan Adblock pada browser anda!
Atau anda tidak mengaktifkan Javascript![ Disable Your AdBlock Please ]
Home > CodeIgniter > Leverage Browser Caching – Google Page Speed Resolved

Leverage Browser Caching – Google Page Speed Resolved

Leverage Browser Caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.

Leverage Browser Caching – Google Page Speed

and my solution is :
add this script on my .htaccess file :


##### EXPIRE CACHING - LEVERAGE BROWSER CACHING #####

ExpiresActive On
ExpiresDefault "access plus 1 month 1 days"
ExpiresByType text/html "access plus 1 month 1 days"
ExpiresByType image/gif "access plus 1 month 1 days"
ExpiresByType image/jpeg "access plus 1 month 1 days"
ExpiresByType image/png "access plus 1 month 1 days"
ExpiresByType text/css "access plus 1 month 1 days"
ExpiresByType text/javascript "access plus 1 month 1 week"
ExpiresByType application/x-javascript "access plus 1 month 1 days"
ExpiresByType text/xml "access plus 1 seconds"

##### END EXPIRE CACHING #####

and the results is :

Speed Result : from 60 to be 70 🙂

Leave a Reply

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

*