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. Technical SEO Issues
    4. Expires Header

    Expires Header

    Technical SEO Issues
    2 2 137
    • 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.
    • tdawson09
      tdawson09 last edited by

      We are considering adding expires header to our site. If we add this meta tag to expire for a certain date, but we do not make any changes to the site after it expires, can you be penalized for this?

      1 Reply Last reply Reply Quote 0
      • MichaelC-15022
        MichaelC-15022 last edited by

        No.  The expires directive is merely there to tell the browser "this content is at least good until date X", so that the browser doesn't need to fetch it if it's got it cached.

        So let's say you've got a dynamically-generated page called widgets.php, and it pulls a list of products, latest pricing, availability etc. from the database.  Let's say you style the page with an external stylesheet.css, you've got some awesome wacky UI stuff in Javascript in an external wackystuff.js, and your images for navigation on the site are in /img/nav (but product images, which maybe can change more frequently) are in /img/products.

        You might NOT set the Expires header on your .php files and folders, as those should be considered to expire the second after the browser fetches them.  You might set the Expires header for the CSS file to a week out; same with the JS and the /img/nav folders, as those only change with a major update to the site.  You might set the Expires header date for the /img/products folder to maybe an hour or two, so that if a person is flipping back and forth between pages, the browser will use the cached product image for a little while before forcing a refetch of it.

        Make sense?

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • Are Expires Headers Detrimental to SEO Health?
          Tom-Anthony
          Tom-Anthony
          0
          2
          40

        • Header Logo and H1
          evansluke
          evansluke
          0
          4
          556

        • Page Name vs Header
          josh-riley
          josh-riley
          0
          4
          189

        • Header Tag Question
          Christy-Correll
          Christy-Correll
          0
          5
          287

        • Rel=Canonical Header Location
          OTSEO
          OTSEO
          0
          6
          329

        • Does Google index has expiration?
          informatica810
          informatica810
          0
          3
          169

        • Header Tags
          wojkwasi
          wojkwasi
          0
          7
          1.9k

        • Expired traffic and 301 value
          KeriMorgret
          KeriMorgret
          0
          3
          1.2k

        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