0

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

1

is it OK these js files to be saved in my server

Sure. You must only seriously care about updates. Google doesn't recommend to host such files locally - the only cause for it is that the most users hosting such files locally don't do updates in the timely manner.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.