Fastcgi cache

Jim Ohlstein nginx-forum at nginx.us
Wed May 13 08:06:33 MSD 2009


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.

> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,1890,1993#msg-1993






More information about the nginx mailing list