Add Expires headers in GTmetrix

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

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


Updated April 09, 2015 19:01 PM

Updated March 25, 2017 15:04 PM

Updated April 30, 2015 21:01 PM

Updated June 26, 2018 18:04 PM

Updated May 08, 2015 12:07 PM