Title: Leverage browser cache
Last modified: November 5, 2019

---

# Leverage browser cache

 *  Resolved [khargool](https://wordpress.org/support/users/khargool/)
 * (@khargool)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/leverage-browser-cache-10/)
 * Hi,
 * I am trying to optimize my website in terms of speed and of course it tells me
   to leverage browser cache regarding Google scripts. I was wondering if maybe 
   it is possible to use solution like CAOS plugin ([https://wordpress.org/plugins/host-analyticsjs-local/](https://wordpress.org/plugins/host-analyticsjs-local/))
   to host Google scripts locally ? Since tag manager is implemented via your plugin
   I guess it would have to be done within your plugin. So is it possible ?
 * Regards
 * Marcin
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fleverage-browser-cache-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/leverage-browser-cache-10/#post-12102605)
 * Hi,
 * Many site speed tools complain about external scripts like the GA script, the
   GTM container code or a Facebook pixel, etc.
 * I would say if there are no other issues, no big images, no cacheable on site
   elements, every cache header is set and everything is fine, then those external
   tracking scripts should not harm your website results in any way even if those
   speed testing tools show you suggestions.
 * I have a very stable opinion here: I do not see any reason for storing the GTM
   container and/or the GA script locally. (as far as I know if you serve GA through
   GTM then you can not load analytics.js from a local URL)
 * If I would store your GTM container JS locally, that would give you other bigger
   issues since GTM preview wouldn’t work and publishing a new GTM container would
   include a latency before it gets loaded into your site.
 * I honestly think that managing those external scripts should be the very last
   point on your list of opportunities.
 *  Thread Starter [khargool](https://wordpress.org/support/users/khargool/)
 * (@khargool)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/leverage-browser-cache-10/#post-12128035)
 * Hi Thomas,
 * Thanks for your reply (very thorough 🙂 ) and I totally agree that at least my
   site has bigger issues. I was just wandering if it would make any difference,
   but now I am aware that it wouldn’t. Thanks again, for you reply.
 * Regards
 * Marcin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Leverage browser cache’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [khargool](https://wordpress.org/support/users/khargool/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/leverage-browser-cache-10/#post-12128035)
 * Status: resolved