Skip to content

304 Not Modified (HTTP Status Code 304)

Updated: at 09:12 AM

HTTP status code 304 is an informational status code indicating that the client made a conditional request, and the server allows the request. However, the requested resource has not been modified since the last request. Therefore, the server does not return the content of the resource but informs the client that it can use the cached version.

Common Scenarios for 304 Status Code

When the Server Returns a 304 Status Code

The server may return a 304 status code when the client’s request includes the following headers:

Response Headers

When returning a 304 status code, the server typically does not include a response body but may include the following headers:

Example Response

HTTP/1.1 304 Not Modified
Date: Wed, 21 Oct 2015 14:48:00 GMT
Cache-Control: max-age=3600
ETag: "123456789"
Content-Location: https://www.example.com/path/to/resource

In this example, the status code 304 indicates that the resource has not been modified since the client’s last request. The client can continue using its cached version without needing to re-download the resource.