Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_key and $content_length

April 04, 2013 08:12AM
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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_cache_key and $content_length

ntib1 April 04, 2013 07:59AM

Re: proxy_cache_key and $content_length

dbradfield April 04, 2013 08:12AM

Re: proxy_cache_key and $content_length

ntib1 April 04, 2013 08:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready