From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.190.149 with SMTP id di21cs62399qcb; Mon, 25 Apr 2011 07:20:28 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCMbRn8eQDxCphtbtBBoE0gQdkA@googlegroups.com designates 10.220.57.209 as permitted sender) client-ip=10.220.57.209; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCMbRn8eQDxCphtbtBBoE0gQdkA@googlegroups.com designates 10.220.57.209 as permitted sender) smtp.mail=rack-devel+bncCMbRn8eQDxCphtbtBBoE0gQdkA@googlegroups.com; dkim=pass header.i=rack-devel+bncCMbRn8eQDxCphtbtBBoE0gQdkA@googlegroups.com Received: from mr.google.com ([10.220.57.209]) by 10.220.57.209 with SMTP id d17mr817077vch.11.1303741227624 (num_hops = 1); Mon, 25 Apr 2011 07:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:mime-version :in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=1kJ8sSsSHKNSVOxh1mSCxBr2u8YsHx3jjCs6mZceAao=; b=k4CTPn9v1cGPXHDCpNGyl7vuE0LqpYX3cPy/dM7d1MbqOZG/kXi5QLG6Mhci6uLcD8 uq0flqQ5BwRn6kHct5guvYk0O0qNYr05YPZ8clfu3ILSj5nXg+bwpV86C9kkHDw0D4Qu TMbv/coPwH90gCtTxDZtZgRKzmXxd4nSipEUw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; b=CwnvmSqmiGn7l39eINLE1wPUFN2WaSBRkXlEokKOWuKsWza7T91avgtYha5v9dclfO oq6ImmJ4FaxlxYMT98f3Dr34Uxkj1PozI214Da1gbjogf5JVGisJn3hC7yiFQGW+bsrg HynNISXzeCpsbPYGOxJ4uijriGTK4J+XCHD/4= Received: by 10.220.57.209 with SMTP id d17mr272079vch.11.1303741225853; Mon, 25 Apr 2011 07:20:25 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.52.18.4 with SMTP id s4ls1092010vdd.0.gmail; Mon, 25 Apr 2011 07:20:24 -0700 (PDT) Received: by 10.52.115.165 with SMTP id jp5mr1671546vdb.10.1303741224283; Mon, 25 Apr 2011 07:20:24 -0700 (PDT) Received: by 10.52.115.165 with SMTP id jp5mr1671545vdb.10.1303741224268; Mon, 25 Apr 2011 07:20:24 -0700 (PDT) Received: from mail-vx0-f181.google.com ([209.85.220.181]) by gmr-mx.google.com with ESMTPS id fl21si1622120vbb.3.2011.04.25.07.20.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2011 07:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.hambley@gmail.com designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by vxb39 with SMTP id 39so2246951vxb.12 for ; Mon, 25 Apr 2011 07:20:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.128.137 with SMTP id k9mr1331486vcs.18.1303741223903; Mon, 25 Apr 2011 07:20:23 -0700 (PDT) Received: by 10.220.179.137 with HTTP; Mon, 25 Apr 2011 07:20:23 -0700 (PDT) In-Reply-To: <6ff70823-74e4-41cc-a313-8c3ff6ff5177@a21g2000prj.googlegroups.com> References: <6ff70823-74e4-41cc-a313-8c3ff6ff5177@a21g2000prj.googlegroups.com> Date: Mon, 25 Apr 2011 16:20:23 +0200 Message-ID: Subject: Re: Rack and Varnish From: Lee Hambley To: rack-devel@googlegroups.com X-Original-Sender: lee.hambley@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of lee.hambley@gmail.com designates 209.85.220.181 as permitted sender) smtp.mail=lee.hambley@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=e0cb4e88750f87a34904a1bee885 --e0cb4e88750f87a34904a1bee885 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > like a "restart" for the request, which would give Varnish a chance to > kick in before we bother Rails Sure, so redirect the user=E2=80=A6 or have your middleware get the page fr= om Rack for them, and return it (and beware of the significant performance hit, of having your Ruby stack process cached pages=E2=80=A6 but at least it wouldn= 't hit your Rails app) --e0cb4e88750f87a34904a1bee885 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
like a "res= tart" for the request, which would give Varnish a chance to
kick in before we bother Rails

Sure, so red= irect the user=E2=80=A6 or have your middleware get the page from Rack for = them, and return it (and beware of the significant performance hit, of havi= ng your Ruby stack process cached pages=E2=80=A6 but at least it wouldn'= ;t hit your Rails app)=C2=A0
--e0cb4e88750f87a34904a1bee885--