304Status code
3xxRedirection
NoCacheable by default
RFC 9110 §15.4.5Defined in
Common causes
- Conditional GET with
If-None-Match(ETag) orIf-Modified-Sincematched
What to do
This is a good thing: it saves bandwidth. If content looks stale, check your ETag or Last-Modified logic.
Example response
HTTP/1.1 304 Not Modified Location: https://example.com/new-path Content-Length: 0
Returning 304 in code
Express res.status(304).end(); Flask return jsonify(…), 304 PHP http_response_code(304); Go w.WriteHeader(304)