HTTP

HTTP 304 Not Modified vs 523 Origin Is Unreachable

HTTP 304 (Not Modified) is a 3xx Redirection response, while 523 (Origin Is Unreachable) is a 5xx Server Error response. 304 indicates that the resource has not been modified since the last request. The client can use its cached copy. In contrast, 523 means that cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

Description

The resource has not been modified since the last request. The client can use its cached copy.

When You See It

When the browser cache is still valid (If-None-Match / If-Modified-Since headers match).

How to Fix

No fix needed. This saves bandwidth by confirming the cached version is still current.

Description

Cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

When You See It

When Cloudflare's DNS for the origin fails to resolve.

How to Fix

Verify DNS records in Cloudflare dashboard. Check origin server's IP address.

Key Differences

1.

304 is a 3xx Redirection response, while 523 is a 5xx Server Error response.

2.

HTTP 304: The resource has not been modified since the last request. The client can use its cached copy.

3.

HTTP 523: Cloudflare-specific. Cloudflare could not reach the origin server (DNS resolution failed or no route).

4.

You encounter 304 when when the browser cache is still valid (If-None-Match / If-Modified-Since headers match).

5.

You encounter 523 when when Cloudflare's DNS for the origin fails to resolve.

When to Use Which

For 304 (Not Modified): No fix needed. This saves bandwidth by confirming the cached version is still current. For 523 (Origin Is Unreachable): Verify DNS records in Cloudflare dashboard. Check origin server's IP address.

Learn More