Mobile app version of vmapp.org
Login or Join
Speyer207

: How do I enable cache of the Google Analytics file to increase my PageSpeed Insights score? I have the following rule in my .htaccess file: # 1 Month for most static assets <filesMatch ".(css|jpg|jpeg|png|gif|js|ico|woff)

@Speyer207

Posted in: #GoogleAnalytics #GoogleInsights #PageSpeed

I have the following rule in my .htaccess file:

# 1 Month for most static assets
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|woff)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>


And I have but when I check my page on Google page insights I still see that one .js file has not been cached , the file the following file:
www.google-analytics.com/analytics.js (2 hours)


Now how exactly do I cache this file? How do I cache a Google analytics file?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Speyer207

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme