Add Expires headers in GTmetrix

by Nipun Tharuksha   Last Updated August 09, 2019 17:04 PM - source

When I test the performance of my website via GTmetrix.com it says that there are 2 static components without a far-future expiration date. and listed below links.

https://www.googletagmanager.com/gtag/js?id=UA-49812165-2
https://www.google-analytics.com/analytics.js

So I have asked about this before in past question about GTmextrix .

So what I wants to know is that is it OK these js files to be saved in my server and then cached them via .htaccess and also if its OK could anyone please tell me for how many days I can cache these files.

Thanks



Related Questions


How do i optimize my pages to load faster?

Updated April 09, 2015 19:01 PM




Do websites have to rank an "A" on GTMetrix?

Updated May 08, 2015 12:07 PM