3xx – redirection

The variations of 3xx redirection codes are as follows:

  • 301 Moved Permanently: Indicates that the resource has been relocated and that the new URL location should be provided on the location header.
  • 304 Not Modified: Indicates that the resource is the same as when the client last requested it. It indicates a safe request and is commonly used as part of a caching strategy. The client can send either an ETag or If-Modified-Since header, and the server can avoid sending the response body if the resource is already cached.