Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_valid question

Resicow
April 24, 2009 02:06PM
Thanks Igor,

Just want to confirm that the proxy_cache zone can be the same, so we
can set different proxy_cache_valid 200 values for keys in the same
proxy_cache zone?

Thanks

John







Igor Sysoev wrote:
> On Thu, Apr 23, 2009 at 12:27:46PM -0500, Resicow wrote:
>
>
>> Hello Community,
>>
>> Is it possible to assign different proxy_cache_valid values for
>> different file extensions? So for example .jpg could live in the cache
>> for 7 days, but .js files would only live for 6 hours?
>>
>> I guess you could do this with multiple location directives, just don't
>> know exactly how or if it is supported.
>>
>
> location ~ \.jpg$ {
> proxy_pass ...;
> proxy_cache ...;
> proxy_cache_valid 200 7d;
> }
>
> location ~ \.js$ {
> proxy_pass ...;
> proxy_cache ...;
> proxy_cache_valid 200 6h;
> }
>
>
>
Subject Author Posted

proxy_cache_valid question

Resicow April 23, 2009 01:27PM

Re: proxy_cache_valid question

Igor Sysoev April 23, 2009 03:16PM

Re: proxy_cache_valid question

Resicow April 24, 2009 02:06PM

Re: proxy_cache_valid question

Igor Sysoev April 24, 2009 03:05PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
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