proxy_cache_key and $content_length

Richard Kearsley rkearsley at blueyonder.co.uk
Thu Apr 4 12:09:51 UTC 2013


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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list