Title: Leverage browser caching &#8211; google-analytics.com/analytics.js (2 hours)
Last modified: August 30, 2016

---

# Leverage browser caching – google-analytics.com/analytics.js (2 hours)

 *  Resolved [newsmomcom](https://wordpress.org/support/users/newsmomcom/)
 * (@newsmomcom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/leverage-browser-caching-google-analyticscomanalyticsjs-2-hours/)
 * Is there any way to leverage browser cashing for google analytic to get rid of
   this page speed warning?
 * Leverage browser caching
    Setting an expiry date or a maximum age in the HTTP
   headers for static resources instructs the browser to load previously downloaded
   resources from local disk rather than over the network. Leverage browser caching
   for the following cacheable resources: [http://www.google-analytics.com/analytics.js](http://www.google-analytics.com/analytics.js)(
   2 hours)
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/leverage-browser-caching-google-analyticscomanalyticsjs-2-hours/#post-6779689)
 * not that I know of; it is google who is setting expiry time, so unless you use
   some tool to mirror analytics.js (which I don’t know exists) you can’t do anything
   about that.
 * frank

Viewing 1 replies (of 1 total)

The topic ‘Leverage browser caching – google-analytics.com/analytics.js (2 hours)’
is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/leverage-browser-caching-google-analyticscomanalyticsjs-2-hours/#post-6779689)
 * Status: resolved