Skip to the content
Start free

304 Not Modified

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.

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 #

  1. 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.
  2. 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.
  3. 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.
  4. Make sure the page answers 200 to a normal request and is not blocked. Use our Robots.txt Checker and see indexability.
  5. 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.
  6. 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.
  7. Keep your XML sitemap lastmod dates true as well. Our Sitemap Checker reads them; the Lastmod Checker is coming soon.
  8. 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.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: 304 Not Modified. URSY. Updated 24 November 2026. https://ursy.com/wiki/304-not-modified/ · Section links

Tools for this

All 871 wiki entries, A to Z →