304 Not Modified

If the client has performed a conditional GET request and access is allowed, but the document has not been modified, the server SHOULD respond with this status code. The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields.

The difference

No 304 support

With 304 support

ETag

How it looks

  • Response:

    • ETag:"047c6d76425"
  • ​Next request:

    • ​If-None-Match:"047c6d76425"

Last Modified

How it looks

  • Response:
    • Last-Modified: Wed, 11 Feb 2015 16:48:24 GMT
  • Next request:
    • If-Modified-Since: Wed, 11 Feb 2015 16:48:24 GMT

Checkpoint 

implementation

There are only two hard things in Computer Science: cache invalidation and naming things.

Made with Slides.com