Welcome! Log In Create A New Profile

Advanced

Re: nginx + caching of static files

April 10, 2009 02:40AM
On Thu, Apr 09, 2009 at 02:27:15PM -0500, Resicow wrote:

> Hi Igor (and everyone else),
>
> I had a few quick questions about the new proxy_cache feature, and I
> apologize if they have already been answered.
>
> 1) What about query_strings? Does proxy_cache ignore or include
> query_strings? Is there a way to have it ignore query_strings in the URL?

By default qeury strings are included. You may ignore them using something
like this:

proxy_cache_key $host/$uri";

The default proxy_cache_key approximates

proxy_cache_key $scheme$proxy_host$uri$is_args$args;

> 2) How scalable is this system? Could it handle 50 million different
> URIs for instance?

Each key takes 128 bytes in shared memory zone. Therefore you need 6.1G zone:

key_zone=NAME:6200m;

> 3) Any plans for purge capabilities somehow, in the event you need the
> content flushed right away?

Yes, there are such plans.

> Keep up the great work, thanks for making the world's best server!
>
> Thanks,
>
> John
>
>
>
>
>
> Igor Sysoev wrote:
> >On Wed, Apr 08, 2009 at 11:16:30AM +0000, Glen Lumanau wrote:
> >
> >
> >>How about jpg, css, js or any other files?
> >>
> >
> >No problems with these files. Actually, there are no problems with flv
> >itself. The issue is when you want to get /some.flv?start=5000.
> >However, it seems flv handler can be converted easy enough to filter.
> >
> >
> >>------Original Message------
> >>From: Igor Sysoev
> >>Sender: owner-nginx@sysoev.ru
> >>To: nginx@sysoev.ru
> >>ReplyTo: nginx@sysoev.ru
> >>Subject: Re: Re: nginx + caching of static files
> >>Sent: Apr 8, 2009 6:04 PM
> >>
> >>On Wed, Apr 08, 2009 at 10:51:59AM +0800, ???? wrote:
> >>
> >>
> >>>Dear Igor,
> >>>
> >>>Then, how to use proxy_cache WITH flv streaming?
> >>>I tried proxy_cache feature, but it seems that the flv streaming
> >>>function does not work with proxy_cache.
> >>>
> >>No, flv is not filter, but handler, thefore it's not possible.
> >>
> >
> >
> >
>

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

nginx + caching of static files

Payam Chychi April 07, 2009 01:14AM

Re: nginx + caching of static files

Igor Sysoev April 07, 2009 01:28AM

Re: nginx + caching of static files

Payam Chychi April 07, 2009 01:46AM

Re: nginx + caching of static files

Igor Sysoev April 07, 2009 01:53AM

Re: nginx + caching of static files

Payam Chychi April 07, 2009 02:03AM

Re: nginx + caching of static files

Payam Chychi April 07, 2009 03:55AM

Re: nginx + caching of static files

Igor Sysoev April 07, 2009 04:01AM

Re: nginx + caching of static files

Payam Chychi April 07, 2009 05:03AM

Re: nginx + caching of static files

pf shineyear April 07, 2009 05:31AM

Re: nginx + caching of static files

Tomasz Pajor April 08, 2009 07:50AM

Re: Re: nginx + caching of static files

Peng Wu April 07, 2009 10:51PM

Re: Re: nginx + caching of static files

Igor Sysoev April 08, 2009 07:04AM

Re: Re: nginx + caching of static files

Glen Lumanau April 08, 2009 07:16AM

Re: Re: nginx + caching of static files

Igor Sysoev April 08, 2009 07:18AM

Re: Re: nginx + caching of static files

Maxim Dounin April 08, 2009 09:37AM

Re: Re: nginx + caching of static files

xs23933 May 26, 2009 04:22AM

Re: nginx + caching of static files

Resicow April 09, 2009 03:27PM

Re: nginx + caching of static files

Igor Sysoev April 10, 2009 02:40AM

Re: nginx + caching of static files

Resi Cow April 10, 2009 11:14AM

Re: nginx + caching of static files

yangguangli April 10, 2009 04:48AM

Re: nginx + caching of static files

Igor Sysoev April 10, 2009 06:46AM

Re: nginx + caching of static files

Kirill A. Korinskiy April 10, 2009 06:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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