[Patch] proxy cache for 304 Not Modified

Woon Wai Keen doubleukay at doubleukay.com
Mon Sep 19 20:27:25 UTC 2011

On 2011-09-16 1:54 AM, ビリビリⅤ wrote:
> I cannot found where can using nginx internal cache update without 
> delete the old cache, so I using reopen the cache file to write a new 
> expire header. Can anyone help me to fix this problem?
I did this a few months ago but lost my changes in a laptop crash :(

I also faced the problem where the file handles are opened read-only. 
The way I went about it at the time was to hack ngx_open_and_stat_file() 
to open files readwrite. Which wouldn't be an acceptable way to get the 
patch accepted back into upstream, so the way you're doing it looks better.

Will comment on the rest of your patch tomorrow, cheers.

More information about the nginx-devel mailing list