Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

304 Not Modified: What It Means, How It Works and How to Fix It

304 Not Modified is a caching response, not an error. Learn how ETag and Last-Modified trigger it, how Googlebot reads it and how to fix false 304s.

Sorank customerSorank customerThomas Girauc, Sorank customerCelio Fabiano, Sorank customerSorank customerXavier Breull, Sorank customer
+ 9'000 Subscribers
304 Not Modified: What It Means, How It Works and How to Fix It
Notification: your site reached 20K clicks from Google Search in 28 days

Tools

On this page

Summary

304 Not Modified is an HTTP status code a server returns to a conditional request when the cached copy is still current. Instead of sending the page again, the server answers with headers only and no body, so the browser or crawler reuses its stored version. It is a normal caching response, not an error.

Want to go further? Ask

A 304 Not Modified response is the server saying "nothing changed since your last visit". It only happens when the client already has a copy and asks, with a validator such as an ETag or a date, whether that copy is still good. If it is, the server skips the download. You save bandwidth and server work, and the visitor or the bot gets its answer faster.

What does 304 Not Modified mean?

304 Not Modified means the resource you asked for has not changed since the version you already hold, so there is no need to send it again. According to MDN's reference on the 304 status code, it is sent in reply to a conditional GET or HEAD request carrying an If-None-Match or If-Modified-Since header, when that condition evaluates to false.

The response is short by design. The HTTP standard, RFC 9110 section 15.4.5, states that a 304 "cannot contain content or trailers". The server still sends the headers it would have sent with a 200, such as Cache-Control, Date, ETag, Expires and Vary, so the client can refresh its cached metadata.

Is a 304 status code an error?

No, a 304 is not an error. It belongs to the 3xx family, but it does not send the client anywhere else, unlike a 301 redirect. It simply confirms that the stored copy is valid.

Seeing many 304s in your server logs or in the browser's network panel is usually a sign that caching works. MDN even notes that browser developer tools create extra requests that end in 304, so that cache access stays visible. A 304 only becomes a problem in two cases: when the content did change and the server still answers 304, or when the server never answers 304 even though nothing changed. Real errors live elsewhere, in 4xx and 5xx server errors.

How does a 304 Not Modified response work?

A 304 works through a validation exchange in which the client proves which version it has and the server compares it to the current one. The cycle has four steps:

  1. The client requests the page for the first time. The server answers 200 OK with the full content and one or two validators: an ETag (an identifier of this version) and a Last-Modified date.
  2. The client stores the page and its validators.
  3. On the next visit, the client sends a conditional request: If-None-Match with the stored ETag, If-Modified-Since with the stored date, or both.
  4. The server compares. If nothing changed, it answers 304 with no body. If the page changed, it answers 200 with the new content and new validators.

Here is what the exchange looks like on the wire:

GET /pricing HTTP/1.1
Host: www.example.com
If-None-Match: "v42-a1b2c3"
If-Modified-Since: Tue, 10 Nov 2026 08:00:00 GMT

HTTP/1.1 304 Not Modified
Date: Thu, 26 Nov 2026 09:15:00 GMT
ETag: "v42-a1b2c3"
Cache-Control: max-age=3600
Vary: Accept-Encoding
MDN reference page for the HTTP 304 Not Modified status code, with its definition and conditional request examples
Screenshot of developer.mozilla.org

When a request carries both headers, the ETag wins. Section 13.2.2 of the same RFC sets the evaluation order: If-None-Match is checked before If-Modified-Since, and the date is only evaluated when no If-None-Match is present.

What is the difference between ETag and Last-Modified?

ETag identifies a precise version of the content, while Last-Modified records the date it last changed. Both let the server decide whether to answer 304, but they behave differently:

CriterionETag / If-None-MatchLast-Modified / If-Modified-Since
What it storesAn opaque string, often a hash of the contentA date in HTTP format
PrecisionAny change produces a new valueOne second; two edits in the same second look identical
PriorityEvaluated firstIgnored when If-None-Match is present
Typical pitfallValue that differs between servers or on each requestDate that does not move when the page changes, or a badly formatted date

Google's crawl team leans toward ETag. In Crawling December: HTTP caching (December 9, 2024), Gary Illyes writes that Google strongly recommends ETag "because it's less prone to errors and mistakes", that its crawlers also support Last-Modified based requests, and that you can set both.

How does Googlebot handle 304 Not Modified?

Googlebot reads a 304 as unchanged content and keeps the version it already has. Google's page on how HTTP status codes affect Google's crawlers says that on a 304, its crawlers signal to the next processing system that the content is the same as the last crawl, and that the status code has no other effect on indexing.

Google documentation explaining how HTTP status codes, including 304, affect Google's crawlers
Screenshot of developers.google.com

The benefit is on your side. In the same caching post, Google explains that a 304 with no body means your server does not spend resources generating the content and does not transfer it, which saves you money on every repeat request until the content changes. On a large site, those saved fetches leave more room in your crawl budget for new and updated pages.

Tip

Google recommends forcing a cache refresh only on significant changes. Updating the copyright year in the footer is not one, so it should not change the ETag on every page.

You can see how often Googlebot gets a 304 in Search Console: the Crawl Stats report breaks crawl requests down by response, and our guide on reading the Crawl Stats report shows where to find that line.

How do you check whether a page returns 304?

You check it by sending a conditional request yourself and reading the status code. Four methods, from fastest to most complete:

  • curl: request the page once, copy the ETag, then run curl -I -H 'If-None-Match: "your-etag"' https://www.example.com/page. A working setup answers 304.
  • Browser DevTools: open the Network tab, load the page, reload it. Look at the Status column for 304 and at the request headers for If-None-Match.
  • A headers checker: the free Sorank HTTP headers checker shows the ETag, Last-Modified, Cache-Control and Vary headers your server returns, so you can see at once whether validators exist at all.
  • Server logs: filter crawler hits by status code to see the share of 304s per bot and per section, as explained in log file analysis for SEO.

Why do you get a 304 when you expected a 200?

An unexpected 304 almost always means a validator did not change when the content did. Check these causes in order:

  • Cache layer out of sync: a content delivery network, reverse proxy or caching plugin keeps serving the old validators after you publish. Purge the cache for that URL and test again.
  • ETag computed on the template, not the page: if your CMS builds the ETag from a file that did not change, while the database content did, the server keeps saying 304.
  • Last-Modified tied to the wrong date: the creation date or the template date instead of the last content edit.
  • Browser state: your own browser sends validators on reload. Test in a private window or with curl without conditional headers; a correct server must answer 200 to a plain request.

The reverse case, never getting a 304, means the server sends no validator or sends one that changes on every request. It costs you bandwidth and page speed for returning visitors, but it does not block indexing.

Common 304 Not Modified mistakes

Most 304 problems come from validators that lie in one direction or the other. Here are the five to look for.

  1. Answering 304 after a real change. What it is: the content moved but the ETag or date did not. How to spot it: you edit a page, send a conditional request with the old ETag and still get 304; Google keeps showing the old text. How to fix it: compute the ETag from the final rendered content, or update Last-Modified on every content edit, then purge the cache layers.
  2. ETags that change on every request or every server. What it is: a value built from a timestamp, a session or a per-server file attribute behind a load balancer. How to spot it: request the same URL twice and compare the ETag values. How to fix it: base the ETag on the content only, identical on every server.
  3. Badly formatted Last-Modified dates. What it is: a date that is not in the HTTP format. How to spot it: the header reads like "2026-11-10" instead of "Tue, 10 Nov 2026 08:00:00 GMT". How to fix it: use the HTTP date format, as Google asks in its caching post.
  4. Returning 304 to requests without conditions. What it is: a misconfigured cache that answers 304 even when the client sent no If-None-Match or If-Modified-Since. How to spot it: a plain curl request with no conditional header gets a 304. How to fix it: only send 304 after a successful validator check.
  5. Treating 304s as errors. What it is: disabling ETags or caching because 304 lines look alarming in logs or audits. How to spot it: an audit or ticket lists 304 among "issues". How to fix it: leave them alone; filter 304 out of error reports and watch real crawl errors instead.

Why does 304 Not Modified matter for SEO and GEO?

304 matters because it makes repeat crawls cheap, so bots spend their time on pages that actually changed. For SEO, that means Googlebot recrawls your unchanged pages at almost no cost to your server and can reach new content faster, which counts most on sites with thousands of URLs.

For GEO, the stakes are the same server capacity. AI crawlers such as GPTBot and ClaudeBot add their own requests on top of search engines. A server that answers unchanged pages with light 304s instead of full pages stays fast and available for every bot, which keeps your content reachable for the AIs that may cite it. The condition is accuracy: a false 304 is worse than none, because it freezes an old version of your page in Google and wherever else it was fetched.

Conclusion

304 Not Modified is a healthy caching response: the server confirms the stored copy is current and sends no body. Give every page a stable ETag built from its content, and a correct Last-Modified date if you can, check that edits change them, and purge your cache layers on publish. Then confirm the setup with curl, your logs and the headers checker, and keep 304s out of your error lists. For the bigger picture, see how 304s fit into crawling.

Sources

Frequently asked questions

Is 304 Not Modified bad for SEO?

No. Google says a 304 tells its systems the content is the same as the last crawl and has no other effect on indexing. It only hurts when the server answers 304 after the page really changed, because Google then keeps the old version.

How do I fix a 304 Not Modified response?

If the page did not change, there is nothing to fix: the 304 is caching working as intended. If the page changed, make sure your ETag or Last-Modified value updates with the content, then purge your CDN, proxy or plugin cache for that URL.

What is the difference between 304 and 200 from cache?

A 304 means the browser asked the server and the server confirmed the stored copy is still valid, with no body sent. A response served from the browser cache never reaches the server at all, because the cached copy was still fresh.

Our Blog for Ambitious Company

Testimonials from ambitious founders

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.frGoogleE-commerce

0 to 5000 visits in 8 months

Thibault BMsorank.comGoogleSoftware

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.comGoogleLeisure and aviation

0 to 163 clicks in 6 months

Coworking Pariscoworking-paris.frGoogleOffice broker

x92 clicks in 7 months

Guide Zanzibarguidezanzibar.comGoogleTravel