The author doesn’t mention this but if you want your server to respond with 304 status codes you will need to implement ETags [1].
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ET...
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ET...