HTTP

HTTP 301 Moved Permanently vs 304 Not Modified

Both HTTP 301 (Moved Permanently) and 304 (Not Modified) belong to the 3xx Redirection category. 301 indicates that the resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL. Meanwhile, 304 means that the resource has not been modified since the last request. The client can use its cached copy.

Description

The resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL.

When You See It

After domain migrations, URL restructuring, or when consolidating duplicate URLs.

How to Fix

Update links and bookmarks to the new URL in the Location header. For SEO, this is the preferred redirect for permanent moves.

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.

Key Differences

1.

HTTP 301: The resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL.

2.

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

3.

You encounter 301 when after domain migrations, URL restructuring, or when consolidating duplicate URLs.

4.

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

When to Use Which

For 301 (Moved Permanently): Update links and bookmarks to the new URL in the Location header. For SEO, this is the preferred redirect for permanent moves. For 304 (Not Modified): No fix needed. This saves bandwidth by confirming the cached version is still current.

Learn More