The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Implications of extending browser caching for Google?

    Implications of extending browser caching for Google?

    Intermediate & Advanced SEO
    3 2 2.8k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chrisvogel
      chrisvogel last edited by

      I have been asked to leverage browser caching on a few scripts in our code.

      • http://www.googletagmanager.com/gtm.js?id=GTM-KBQ7B5 (16 minutes 22 seconds)
      • http://www.google.com/jsapi (1 hour)
      • https://www.google-analytics.com/plugins/ua/linkid.js (1 hour)
      • https://www.google-analytics.com/analytics.js (2 hours)
      • https://www.youtube.com/iframe_api (expiration not specified)
      • https://ssl.google-analytics.com/ga.js (2 hours)

      The number beside each link is the expiration for cache applied by the owners.  I'm being asked to extend the time to 24 hours. Part of this task is to make sure doing this is a good idea. It would not be in our best interest to do something that would disrupt the collection of data.

      Some of what I'm seeing is recommending having a local copy which would mean missing updates from ga/gtm or call for the creation of a cron job to download any updates on a daily basis.

      Another concern is would caching these have a delay/disruption in collecting data? That's an unknown to me – may not be to you.

      There is also the concern that Google recommends not caching outside of their settings.

      Any help on this is much appreciated.

      Do you see any issues/risks/benefits/etc. to doing this from your perspective?

      1 Reply Last reply Reply Quote 0
      • DannyHoodless
        DannyHoodless last edited by

        You wouldn't disrupt the collection of data, but you would need to run a cron job to keep updating it. It is not recommended that you store Google analytics locally & honestly it would make little difference to your speed and is more trouble than it's worth. Caching is not recommended by Google for a reason.

        All though if your page speed is healthy your really have nothing to worry about. If your concern is just trying to get 100/100 on the page tests i have heard that this does the trick:

        https://developers.google.com/speed/pagespeed/module/filter-make-google-analytics-async#description

        Danny

        1 Reply Last reply Reply Quote 0
        • chrisvogel
          chrisvogel last edited by

          Thanks, this is super helpful

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Browser Cacheing - HTTPS redirects to HTTP
            0
            1
            59

          • Browser caching for SEO - Hinders updates
            0
            1
            134

          • Pages are Indexed but not Cached by Google. Why?
            friendoffood
            friendoffood
            0
            44
            19.4k

          • PDF Cached by Google, but not showing as link
            FarkyRafiq
            FarkyRafiq
            0
            4
            205

          • Leverage Browser Caching: Do I need Last-Modified?
            KristinaKledzik
            KristinaKledzik
            0
            2
            187

          • How to leverage browser cache a specific file
            asbchris
            asbchris
            0
            3
            8.1k

          • Google Site Extended Listing Not Indexed
            TakeshiYoung
            TakeshiYoung
            0
            2
            250

          • How Google Carwler Cached Orphan pages and directory?
            KeriMorgret
            KeriMorgret
            0
            13
            2.4k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy