May 13, 2009 12:25AM
On Wed, May 13, 2009 at 12:06:33AM -0400, Jim Ohlstein wrote:

> Igor Sysoev Wrote:
> -------------------------------------------------------
> > On Sat, May 09, 2009 at 03:02:53PM -0400, Jim
> > Ohlstein wrote:
> >
> > > Is there any way to set the it just to cache
> > image and other media files, but not text/html? I
> > only see based on response in the Russian docs
> > (best as I can understand). Is that something that
> > can be added or is planned?
> >
> > No, currently nginx can not cache using
> > content-type, but it can be easy
> > added. Also you may use location to separate
> > responses.
> >
>
> Can you give a sample configuration of how that would work.
>
> I have tried putting location blocks in and out of the main fastcgi_pass block without any success.

location ~ \.php$ {
fastcgi_pass ...
}

location ~ \.(jpg|gif|png)$ {
fastcgi_pass ...
fastcgi_cache ...
}


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

Fastcgi cache

Jim Ohlstein May 09, 2009 03:02PM

Re: Fastcgi cache

坏人 May 12, 2009 12:01AM

Re: Fastcgi cache

Igor Sysoev May 12, 2009 02:33AM

Re: Fastcgi cache

deltay May 12, 2009 06:10AM

Re: Fastcgi cache

Jim Ohlstein May 13, 2009 12:06AM

Re: Fastcgi cache

Igor Sysoev May 13, 2009 12:25AM

Re: Fastcgi cache

Jim Ohlstein May 13, 2009 10:59AM

Re: Fastcgi cache

Igor Sysoev May 13, 2009 11:04AM

Re: Fastcgi cache

Jim Ohlstein May 13, 2009 11:42AM

Re: Fastcgi cache

Igor Sysoev May 13, 2009 11:52AM

Re: Fastcgi cache

Jim Ohlstein May 13, 2009 01:35PM

Re: Fastcgi cache

Jim Ohlstein May 19, 2009 05:09PM

Re: Fastcgi cache

Maxim Dounin May 19, 2009 05:33PM

Re: Fastcgi cache

Jim Ohlstein May 19, 2009 05:49PM

Re: Fastcgi cache

Payam Chychi May 20, 2009 01:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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