Check Out Our Video Guide to the 304 Not Modified Status Code and All 3xx Redirects The purpose of this is to improve page speed and delivery, by preventing your browser from having to repeatedly download the same information. In turn, your browser retrieves a saved version of the web page from the cache. In other words, there is no need for the server to transfer a representation of the target resource because the request indicates that the client, which made the request conditional, already has a valid representation the server is therefore redirecting the client to make use of that stored representation as if it were the payload of a 200 (OK) response.Įssentially, your (or your visitor’s) browser is being told by the server that the resources stored (cached) in the browser haven’t been modified since the latest time you visited that page. The 304 (Not Modified) status code indicates that a conditional GET or HEAD request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition evaluated to false. The Internet Engineering Task Force (IETF) defines the 304 Not Modified as: HTTP 304, also sometimes known as “304 Not Modified”, is a code that communicates to your browser that: “The requested resource has not been modified since the last time you accessed it.” When you encounter one of these status codes, it means that further action must be taken. They make it clear that the information being requested was either temporarily or permanently substituted with another resource. On the other hand, codes in the 300s – such as the HTTP 304 status code we’ll focus on in this post – are redirection codes. For example, error codes that fall into the 400s, such as the “ 404 Not Found” error and the ” 401 error”, typically mean that there was an issue with the request and the website or page in question was unreachable. Each series indicates a different type of problem. HTTP status codes fall into one of five categories, numbered between the 100s and 500s. When you do encounter a status code, it usually means that something has gone wrong. However, there are only a handful you’ll likely come across directly. There are more than 40 different status codes that can be involved in that communication. Put simply, every time you make a request to your browser – such as by accessing a particular website – an HTTP status code is sent between your browser and the server in order to exchange information. To understand HTTP 304, it helps to first understand status codes.
0 Comments
Leave a Reply. |