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. On-Page / Site Optimization
    4. How do I "leverage browser caching"

    How do I "leverage browser caching"

    On-Page / Site Optimization
    7 3 14.1k
    • 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.
    • brianw10
      brianw10 last edited by

      Google is telling me to "leverage browser caching" and put a freshness factor of 1 week on images used on my site. http://www.1stclassdriving.co.uk.
      Try as i may I cannot find out how to do this.

      I'm running two sites -  http://www.1stclassdriving.co.uk. on a shared hosting package with Easyspace and http://www.croydondrivingschool.co.uk with Fasthosts, both under windows with asp scripting.

      Can anyone point me to any tutorials or guide me as to how I do this please

      1 Reply Last reply Reply Quote 0
      • Matt-Williamson
        Matt-Williamson last edited by

        Hi Brian

        I think you might find this helpful - http://stackoverflow.com/questions/6634302/how-to-leverage-browser-caching-at-asp-net-iis-7-5

        and...

        http://stackoverflow.com/questions/642954/iis7-cache-control

        You should be able to do this by making/editing (if you already have one) a web.config file in your root folder, which is explained in the article above.

        1 Reply Last reply Reply Quote 1
        • brianw10
          brianw10 last edited by

          Brilliant - works fine - many thanx Matt

          Matt-Williamson 1 Reply Last reply Reply Quote 0
          • Matt-Williamson
            Matt-Williamson @brianw10 last edited by

            Glad I could help Brian and welcome to the community, by the way 🙂

            BeytzNet 1 Reply Last reply Reply Quote 0
            • BeytzNet
              BeytzNet @Matt-Williamson last edited by

              Dear Matt,

              I don't get it...

              Is the answer in the programming of the site (for example through the web.config) or something to do in the IIS (which means the hosting company should do it...?) ?

              Also, caching only helps the second time the same user loads the page doesn't it?

              THanks

              Matt-Williamson 1 Reply Last reply Reply Quote 0
              • Matt-Williamson
                Matt-Williamson last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Matt-Williamson
                  Matt-Williamson @BeytzNet last edited by

                  Hi

                  To Leverage browser caching speeds up your site as it will only cause common resources to be loaded once rather than every time you load a page on your site or revisit the site. In order to leverage browser caching I would suggest editing your web.config file if you are on an IIS server or in the .htaccess file if you are on an Apache server. Both of these will involve you making an entry into either of these files and shouldn't require your hosting company. I regularly work with both, but in particular Apache servers and I often drop the standard code in to leverage this and speed the site up. One other noticeable speed enhancement I would recommend is gzip compression which can be carried out in a similar manner. If you have anymore questions about any of this don't hesitate to give me a shout on here 🙂

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • When using long-tail keywords, should you exactly match for the url or delete "in" "to" etc.?
                    Vanderlindemedia
                    Vanderlindemedia
                    0
                    2
                    32

                  • My target keyword is "moringa powder" but my product title is "moringa ultimate original powder". Is this a problem?
                    Jeremy-Marion
                    Jeremy-Marion
                    0
                    5
                    409

                  • How "Top" or "Best" are considered when in front of keyword
                    m2webs
                    m2webs
                    0
                    5
                    133

                  • Rel="canonical" link should they be to or from an "SEO friendly" url
                    AlanBleiweiss
                    AlanBleiweiss
                    0
                    3
                    759

                  • Encouraging users to "like" or "+1" our pages
                    cbielich
                    cbielich
                    0
                    6
                    411

                  • With or without the "www." ?
                    blacey
                    blacey
                    0
                    20
                    5.9k

                  • Will a "no follow" "no index" meta tag resolve duplicate content issue?
                    Getz.pro
                    Getz.pro
                    0
                    5
                    1.1k

                  • Avoiding "Duplicate Page Title" and "Duplicate Page Content" - Best Practices?
                    WesleySmits
                    WesleySmits
                    5
                    29
                    17.8k

                  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