My default NGinx installation is returning a 304 Not Modified response to a request which has a matching
If-None-Match header and a non-expired
If-Modified-Since header which is correct behaviour but NGinx also adds the content of the resource to the 304 response. One would think that NGinx wouldn't add the content, but simply return the 304 with an empty body indicating to the browser that using their cached resource is sufficient.
Is there a reason for this behaviour and how do I disable it?