handy.moe

All tools / Debug tools / Status codes

HTTP 304 Not Modified

The cached copy is still good. No body is sent.

This page runs in your browser and makes no requests.

304 Not Modified

The cached copy is still good. No body is sent.

Common causes

A conditional request with If-None-Match (ETag) or If-Modified-Since that matched.

What to do

This is a success. If you never see 304s, check your ETag or Last-Modified headers are stable; a build that changes them on every deploy defeats caching.

Class: 3xx Redirection · Defined in RFC 9110 §15.4.5

How to use it

  1. Look at the response in your browser's Network tab, or run curl -i URL to see the status line and headers.
  2. Read the response body: many servers explain the exact reason there.
  3. Fix the cause above and send the request again.

Questions

Is 304 an error?

Not exactly. 304 is a redirect or cache response, a normal part of how the web works. It only becomes a problem if it loops or goes to the wrong place.

Should I retry a 304?

Follow the redirect (browsers and most HTTP libraries do this automatically).

Where can I see the 304 in my browser?

Open the developer tools (F12 or Cmd+Option+I), go to the Network tab, reload, and look at the Status column. Click the request and open the Response and Headers tabs for the details.