Monday, June 26, 2017

Google PageSpeed Insights suggests "Leverage browser caching"

Add following into .htaccess file
##### EXPIRE CACHING - LEVERAGE BROWSER CACHING #####
<IfModule mod_headers.c>
# WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=604800, public"
</FilesMatch>
</IfModule>
##### END EXPIRE CACHING #####

No comments:

Post a Comment