Anyone knows how to set browser leverage caching for the below given files?
http://weloveiconfonts.com/api/?family=entypo (15 minutes)
http://platform.twitter.com/widgets.js (30 minutes)
I get these above links while checked in PageSpeed Insights.
Anyone knows how to set browser leverage caching for the below given files?
http://weloveiconfonts.com/api/?family=entypo (15 minutes)
http://platform.twitter.com/widgets.js (30 minutes)
I get these above links while checked in PageSpeed Insights.
Webhostwala -Shared | Reseller | VPS | Cloud
Over 7000 collected Internet Marketing Articles | -0-Money From the Web-0- | About Music Blog
Affiliate links - HostGator 30% off Code | MicroNicheFinder
First of all why you need browser leverage caching enable, it reduces the load on your web server, which ultimately reduces the load time for your users. To enable browser caching you need to edit your HTTP headers to set expiry times for certain types of files. You want to be careful when enabling browser caching as if you set the parameters too long on certain files, users might not be getting the fresh version of your website after updates.
[QUOTE=jasonhalle;108410You want to be careful when enabling browser caching as if you set the parameters too long on certain files, users might not be getting the fresh version of your website after updates.[/QUOTE]
Is it OK if I set expiry in the below manner ?
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
Please suggest if anything is wrong in this.
Webhostwala -Shared | Reseller | VPS | Cloud
Browser leverage caching and increasing the performance by decreasing the web page loading speed is technical issue which needs to be fixed in order to improve user experience.