proxy_cache_key and $content_length
rkearsley at blueyonder.co.uk
Thu Apr 4 12:09:51 UTC 2013
That's a good idea but I think it's not possible
The key is set before request is sent to backend but it can only know
the content length after the request is sent to backend (catch 22)
On 04/04/13 12:59, ntib1 wrote:
> I'd like to put $content_length in proxy_cache_key in order nginx to check
> if file had changed and send it instead of old file if it's case.
> But the $content_length is always empty. Why ?
> Or do you have another solution for my problem ?
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238097,238097#msg-238097
> nginx mailing list
> nginx at nginx.org
More information about the nginx