{
    "title": "304 Not Modified",
    "description": "304 Not Modified tells a browser or crawler its saved copy of a page is still current, so the server sends headers only and no body.",
    "url": "https://ursy.com/wiki/304-not-modified/",
    "canonical": "https://ursy.com/wiki/304-not-modified/",
    "markdown": "https://ursy.com/wiki/304-not-modified/index.md",
    "json": "https://ursy.com/wiki/304-not-modified/index.json",
    "published": "2026-11-24T23:00:33+00:00",
    "updated": "2026-11-24T23:06:42+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/304-not-modified/",
    "headings": [
        {
            "level": 2,
            "text": "What is 304 Not Modified?",
            "id": "what-is-304-not-modified",
            "url": "https://ursy.com/wiki/304-not-modified/#what-is-304-not-modified"
        },
        {
            "level": 2,
            "text": "How does it work?",
            "id": "how-does-it-work",
            "url": "https://ursy.com/wiki/304-not-modified/#how-does-it-work"
        },
        {
            "level": 2,
            "text": "What does it look like?",
            "id": "what-does-it-look-like",
            "url": "https://ursy.com/wiki/304-not-modified/#what-does-it-look-like"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/304-not-modified/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/304-not-modified/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/304-not-modified/#common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/304-not-modified/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/304-not-modified/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/304-not-modified/#questions"
        },
        {
            "level": 3,
            "text": "Is a 304 an error?",
            "id": "is-a-304-an-error",
            "url": "https://ursy.com/wiki/304-not-modified/#is-a-304-an-error"
        },
        {
            "level": 3,
            "text": "Can a 304 hurt my ranking?",
            "id": "can-a-304-hurt-my-ranking",
            "url": "https://ursy.com/wiki/304-not-modified/#can-a-304-hurt-my-ranking"
        },
        {
            "level": 3,
            "text": "ETag or Last-Modified?",
            "id": "etag-or-last-modified",
            "url": "https://ursy.com/wiki/304-not-modified/#etag-or-last-modified"
        },
        {
            "level": 3,
            "text": "Do I need to set this up myself?",
            "id": "do-i-need-to-set-this-up-myself",
            "url": "https://ursy.com/wiki/304-not-modified/#do-i-need-to-set-this-up-myself"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/304-not-modified/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/304-not-modified/#sources"
        }
    ],
    "links": [
        {
            "text": "HTTP",
            "url": "https://ursy.com/wiki/http/",
            "internal": true
        },
        {
            "text": "HTTP status code",
            "url": "https://ursy.com/wiki/http-status-code/",
            "internal": true
        },
        {
            "text": "RFC 9110",
            "url": "https://www.rfc-editor.org/rfc/rfc9110.html#section-15.4.5",
            "internal": false
        },
        {
            "text": "HTTP headers",
            "url": "https://ursy.com/wiki/http-headers/",
            "internal": true
        },
        {
            "text": "MDN&#8217;s 304 page",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/304",
            "internal": false
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "Google crawlers and fetchers",
            "url": "https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers",
            "internal": false
        },
        {
            "text": "crawling",
            "url": "https://ursy.com/wiki/crawling/",
            "internal": true
        },
        {
            "text": "HTTP status codes and Google Search",
            "url": "https://developers.google.com/search/docs/crawling-indexing/http-network-errors",
            "internal": false
        },
        {
            "text": "Googlebot",
            "url": "https://ursy.com/wiki/googlebot/",
            "internal": true
        },
        {
            "text": "crawl budget",
            "url": "https://ursy.com/wiki/crawl-budget/",
            "internal": true
        },
        {
            "text": "training crawlers",
            "url": "https://ursy.com/wiki/training-crawler/",
            "internal": true
        },
        {
            "text": "live fetchers",
            "url": "https://ursy.com/wiki/live-fetcher/",
            "internal": true
        },
        {
            "text": "AI crawlers will slow your website",
            "url": "https://ursy.com/guides/will-ai-crawlers-slow-my-website/",
            "internal": true
        },
        {
            "text": "404 and 410",
            "url": "https://ursy.com/wiki/404-and-410/",
            "internal": true
        },
        {
            "text": "redirect",
            "url": "https://ursy.com/wiki/redirect/",
            "internal": true
        },
        {
            "text": "301 vs 302 redirect",
            "url": "https://ursy.com/wiki/301-vs-302-redirect/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "how-to guide",
            "url": "https://ursy.com/guides/how-to-use-http-header-checker/",
            "internal": true
        },
        {
            "text": "CDN",
            "url": "https://ursy.com/wiki/cdn/",
            "internal": true
        },
        {
            "text": "edge cache",
            "url": "https://ursy.com/wiki/edge-cache/",
            "internal": true
        },
        {
            "text": "origin server",
            "url": "https://ursy.com/wiki/origin-server/",
            "internal": true
        },
        {
            "text": "Cache Checker",
            "url": "https://ursy.com/cache-checker/",
            "internal": true
        },
        {
            "text": "Robots.txt Checker",
            "url": "https://ursy.com/robots-txt-checker/",
            "internal": true
        },
        {
            "text": "indexability",
            "url": "https://ursy.com/wiki/indexability/",
            "internal": true
        },
        {
            "text": "server logs",
            "url": "https://ursy.com/wiki/server-logs/",
            "internal": true
        },
        {
            "text": "Log file analysis",
            "url": "https://ursy.com/wiki/log-file-analysis/",
            "internal": true
        },
        {
            "text": "bot",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "Verify AI Bot",
            "url": "https://ursy.com/verify-ai-bot/",
            "internal": true
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "Crawl Stats report",
            "url": "https://support.google.com/webmasters/answer/9679690",
            "internal": false
        },
        {
            "text": "XML sitemap",
            "url": "https://ursy.com/wiki/xml-sitemap/",
            "internal": true
        },
        {
            "text": "Sitemap Checker",
            "url": "https://ursy.com/sitemap-checker/",
            "internal": true
        },
        {
            "text": "Lastmod Checker",
            "url": "https://ursy.com/lastmod-checker/",
            "internal": true
        },
        {
            "text": "Edge cache report",
            "url": "https://ursy.com/pro/edge-cache-report/",
            "internal": true
        },
        {
            "text": "Crawl budget by bot",
            "url": "https://ursy.com/pro/crawl-budget-by-bot/",
            "internal": true
        },
        {
            "text": "caching",
            "url": "https://ursy.com/wiki/caching/",
            "internal": true
        },
        {
            "text": "CMS",
            "url": "https://ursy.com/wiki/content-management-system-cms/",
            "internal": true
        },
        {
            "text": "Cache purge",
            "url": "https://ursy.com/wiki/cache-purge/",
            "internal": true
        }
    ],
    "words": 1326,
    "text": "304 Not Modified is an HTTP status code a server sends when a browser or crawler asks for a page it already holds a copy of, and that copy is still current, so nothing needs to be sent again. It saves bandwidth and time. The reply has headers but no body, and the visitor’s saved copy is used instead. What is 304 Not Modified? Every reply from a web server starts with a three-digit HTTP status code. Codes in the 300s are grouped as redirection codes, but 304 does not send anyone to a new address. The HTTP standard, RFC 9110, says it means there is no need for the server to transfer the content again. In plain words: “you already have it, use what you saved”. A 304 only ever answers a conditional request. The client says, in effect, “send me this page, but only if it has changed since my copy”. If it has not changed, the server replies 304. If it has, the server sends a normal 200 with the new page. How does it work? The trick is two pairs of HTTP headers. One pair works with dates, the other with fingerprints. The server sends (first visit) The client sends back (next visit) What it compares Last-Modified: a date and time If-Modified-Since: that same date Has the page changed since that moment? ETag: a short code for this version If-None-Match: that same code Is the current version still the one with this code? MDN’s 304 page explains that the server sends 304 when a conditional GET or HEAD request carries one of those headers and the condition is false. The response must not contain a body. RFC 9110 says a 304 ends with the header section and cannot carry content. The server should still send the headers it would have put on a 200, such as Cache-Control, Date, ETag, Expires and Vary, so the client can refresh its saved copy’s details. What does it look like? Here is a short exchange. The browser visited yesterday and kept the ETag. GET /guides/delivery/ HTTP/1.1 Host: www.example.co.uk If-None-Match: \"v42-delivery\" HTTP/1.1 304 Not Modified Date: Tue, 24 Nov 2026 09:00:00 GMT ETag: \"v42-delivery\" Cache-Control: max-age=3600 No HTML was sent. The browser shows the page it saved. If the shop had changed the delivery page, the ETag would differ and the server would answer 200 with the full page. Why does it matter for search? Crawlers revisit pages again and again. A site with thousands of pages that never change wastes its own server power, and the crawler’s time, if it sends every page in full on every visit. Google’s page on Google crawlers and fetchers says its crawling systems support ETag with If-None-Match and Last-Modified with If-Modified-Since, as the HTTP caching standard defines them. When both are present, Google uses the ETag, and it recommends ETag over Last-Modified. It also says a max-age value in Cache-Control can help its crawlers decide when to come back. What does Google do with a 304? Its guide to HTTP status codes and Google Search says the crawler tells the next system that the content is the same as last time, and that the code has no effect on indexing beyond that. Your page keeps its place. It is not dropped because Googlebot got an empty body. This ties into your crawl budget: on a big site, cheap unchanged answers leave more room for new and updated pages to be fetched. Why does it matter for AI answers? AI systems send their own visitors: training crawlers, search indexers for AI answers, and live fetchers that read a page while a person waits. Many come back to the same pages often. Correct 304 replies make those repeat visits cheap, which matters if you worry that AI crawlers will slow your website. The other side is honesty. If your server says “not modified” when the price or stock has changed, a careful client keeps the old copy, and old facts can end up repeated in an answer. Common mistakes A body on a 304. The standard forbids it. MDN notes that browsers behave differently when a body slips in on a kept-alive connection. The same ETag for every version. If the code never changes when the page does, clients keep stale copies. This can happen when a template sets a fixed value. Last-Modified that never moves. Some systems stamp the date the file was first made, not the date the content changed. Different ETags on different servers. Behind a load balancer, each machine may make its own code for the same page, so conditional requests rarely match. You lose the saving but nothing breaks. 304 on a page that is really gone. A removed page should answer 404 or 410, not “not modified”. See 404 and 410. Muddling it with a redirect. 304 sits in the 300 group but moves nobody. If you meant to move a page, read 301 vs 302 redirect. Panic in developer tools. MDN points out that the network panels in many browsers make extra requests that end in 304, so you can see the cache at work. A column of 304s in that panel is normal. A worked example A garden centre has 2,000 plant guides. Most change once a year. A crawler revisits 500 of them in a day. Setup What the crawler gets Effect No ETag, no Last-Modified 500 full pages (200) Every page is sent and checked again Correct ETags Unchanged guides answer 304; the 12 edited guides answer 200 Far less data sent; the edits stand out Fixed ETag in the template 304 for all 500, including the 12 edited ones The crawler may keep old text for edited pages The middle row is the goal. The last row is worse than having no caching at all. How to check it Fetch the page with our HTTP Header Checker. Look for ETag, Last-Modified and Cache-Control in the reply. The how-to guide walks you through the result. From a terminal, send the ETag back with curl and the If-None-Match header. You should see 304. Edit the page, repeat, and you should see 200. Check what your CDN or edge cache does, because it often answers conditional requests before your origin server sees them. Our Cache Checker will read those headers for you. Make sure the page answers 200 to a normal request and is not blocked. Use our Robots.txt Checker and see indexability. Look at who asks and what they get in your server logs. Log file analysis shows the split of 200 and 304 replies per bot. Confirm a crawler is real with Verify AI Bot before trusting its name. In Google Search Console, open the Crawl Stats report. It groups crawl responses by type and lists “Not modified (304)” among the good response codes. Keep your XML sitemap lastmod dates true as well. Our Sitemap Checker reads them; the Lastmod Checker is coming soon. In URSY Pro, the Edge cache report and Crawl budget by bot show how much each crawler takes, opening in stages. Questions Is a 304 an error? No. It is a success in disguise: the copy the client holds is still right. Can a 304 hurt my ranking? Google says the code has no effect on indexing beyond telling its systems the content is unchanged. The risk is a false 304 that hides real changes. ETag or Last-Modified? Both work. Google says it prefers ETag when both are present. Dates are only accurate to the second; an ETag changes with the content itself. Do I need to set this up myself? Often not. Most web servers and caching layers handle conditional requests for static files. Pages built by code, such as a CMS, may need a plugin or setting. Related words HTTP status code Caching Crawl budget HTTP headers Cache purge Sources RFC 9110: HTTP Semantics, section 15.4.5, 304 Not Modified, checked 24 November 2026 MDN Web Docs: 304 Not Modified, checked 24 November 2026 Google Search Central: Google crawlers and fetchers (HTTP caching), checked 24 November 2026 Google Search Central: How HTTP status codes and network errors affect Google Search, checked 24 November 2026 Search Console Help: Crawl Stats report, checked 24 November 2026 Updated 24 November 2026 by URSY.",
    "source": "https://ursy.com/wiki/304-not-modified/"
}