web - Leverage browser catching for google plus button and analytics (2) -
this code put in htaccess file not working. maybe missing something? or doing wrong? if can, please.
expiresactive on expiresbytype image/jpg "access plus 1 month" expiresbytype image/jpeg "access plus 1 month" expiresbytype image/gif "access plus 1 month" expiresbytype image/png "access plus 1 month" 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 1 week"
but, after adding google plus 1 button site , adding google analytics these 2 sugestions on gtmetrix.com
the following cacheable resources have short freshness lifetime. specify expiration @ least 1 week in future following resources:
https://apis.google.com/js/plusone.js (30 minutes) http://www.google-analytics.com/ga.js (12 hours)
how write code in htaccess leverage browser catching these 2. , idea leverage browser catching google analytics?
it not possible control expiration time of 2 resources modifying your server's settings. expiration header has set origin server (therefore google can that)
Comments
Post a Comment