Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Влияние memcached на кэширование
- To: nginx-ru@xxxxxxxxx
- Subject: Re: Влияние memcached на кэширование
- From: "prokhorov.64" <nginx-forum@xxxxxxxx>
- Date: Wed, 21 Aug 2013 04:51:04 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=Cthx0YhCmzbg0InKKkgsSB3l+MsnTkfwbutGCUhiMv0=; b=g64bLhirV9XYNf8o8sO/fyMzZMafTfqyzmwT3BkFegnvabfKfKk6ybwx8ApxMlTrcZj+KyJCOOSwc0S4MCgMBeLoY8PF1+1EhznjJHRDWAOQoOHpVsiEBL/fP+e9O14n1xnhOGnIlUXo8rvw9KZJ6cp8pRKeglby70OP0ezJr2w=;
- In-reply-to: <CAL-L5YAD=i3ZU9LBgUwMVeGhgp=DYyXbMvPOO0kSwTD6x5Bzrg@mail.gmail.com>
- References: <CAL-L5YAD=i3ZU9LBgUwMVeGhgp=DYyXbMvPOO0kSwTD6x5Bzrg@mail.gmail.com>
Существует ли способ обойти эту проблему, отдавая 304 при использовании
memcached?
Вот пример конфига:
location /design/image.png
{
expires off;
add_header Last-Modified "Mon, 23 Jul 2013 09:37:21
GMT";
access_log off;
set $memcached_key $uri;
memcached_pass 10.0.0.15:11211;
error_page 404 = @fallback_img;
fastcgi_cache_valid 200 301 302 304 5m;
}
location @fallback_img
{
expires 1w;
root /var/www/img;
}
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,242066,242069#msg-242069
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|