proxy_ignore_headers doesn't seem to work
francis at daoine.org
Wed Jan 4 23:13:26 UTC 2012
On Wed, Jan 04, 2012 at 10:26:05PM +0000, Francis Daly wrote:
> On Wed, Jan 04, 2012 at 03:12:10PM -0500, piotr wrote:
One more thing on the final "600s"...
> > Also, file is stored on disk for 600s,
> > after this time i can see in logs that nginx is downloading again file
> > from upstream server. Nginx should cache files for 600h in current
> > config, but i've also tried before other values, like 6h or 6d etc.
> That observation, I don't understand.
You don't specify "inactive" in your proxy_cache_path directive, so it
defaults to 10 minutes.
If you see one new request per url every 11 minutes, then it is expected
that nginx will re-fetch from upstream each time.
If you see a new request every 9 minutes, then nginx should not need to
re-fetch from upstream.
Does that explain what you see?
Francis Daly francis at daoine.org
More information about the nginx