if statement for Content-Length

Kingsley Foreman kingsley at internode.com.au
Sun Jan 31 00:55:01 MSK 2010


Mainly I just don't want to cache them, 

The site is hit by a massive amount of small files and some larger, due to the setup I can't separate them (customers are involved). So I want to be able to only cache files under say 5-10mb and just let everything else proxy_pass normally.

Kingsley


-----Original Message-----
From: Jérôme Loyet [mailto:jerome at loyet.net] 
Sent: Sunday, 31 January 2010 1:56 AM
To: nginx at nginx.org
Subject: Re: if statement for Content-Length

2010/1/30 Kingsley Foreman <kingsley at internode.com.au>
>
> Hi Guys,
>
> I've been trying to work out if this can be done or not with not much luck
>
> I want to see if I can  do something like this
>
> If (Content-Length < 1024){
>        Return 403;
> }
>
> Im guessing this can't be done, however it would get around a caching issue I am having with large files.

what is the caching issue you're having with large files ?

>
> Kingsley
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list