proxy_cache incorrectly returning 304 Not Modified

Jon Leighton j at
Fri Jan 10 12:54:21 UTC 2014

On 10/01/14 12:18, Jon Leighton wrote:
> Do you know of any reasons why the response might be blank? I copied the
> cache file so I could review it, and I checked that the X-Request-Id
> matches so it's definitely the same entry. The cache file *does* contain
> the response body - in gzip form. I am using "gzip off" for this
> location block, so I don't think nginx is interfering there. I'm at a
> complete loss about why this is happening, any ideas you have would be
> much appreciated.

I just realised the obvious - that this is a problem for clients who
don't ask for gzip. Will fix that. Don't think that explains the 304
issue though...

More information about the nginx mailing list