Hi
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:
Hi,

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 ?

Thanks,

Thibaut

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,238097,238097#msg-238097

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to