From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.171.136 with SMTP id w8cs52087hbe; Wed, 21 Jul 2010 11:16:40 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCNSYpqGTFhCG85ziBBoEKPg8jQ@googlegroups.com designates 10.142.62.4 as permitted sender) client-ip=10.142.62.4; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCNSYpqGTFhCG85ziBBoEKPg8jQ@googlegroups.com designates 10.142.62.4 as permitted sender) smtp.mail=rack-devel+bncCNSYpqGTFhCG85ziBBoEKPg8jQ@googlegroups.com; dkim=pass header.i=rack-devel+bncCNSYpqGTFhCG85ziBBoEKPg8jQ@googlegroups.com Received: from mr.google.com ([10.142.62.4]) by 10.142.62.4 with SMTP id k4mr252808wfa.35.1279736199205 (num_hops = 1); Wed, 21 Jul 2010 11:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:date:from:to:subject:message-id :references:mime-version:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; bh=56vlUxVrYczK9C7UorZbWbtMIfdynK/1DvLYHSio5ok=; b=uOKjQ7WUPbF2fzHreKFCviZrzVa+Vp9fNNFgIeud3NyczqYeLQgfzbpMod1VDgSyQH ektIQg6GZ/O8/3KG1CXAWNqcZ1Uc2M89s96bQzmSeF6Jkl13vGqmI5fbe+xnzvVMtBTx qOpHn/SdRuutZzXLBUYr1vdp87/YEiuXlDU2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id:references :mime-version:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-disposition; b=r8Mmr3a6J0b6CFpOKxzsa9cL8qor03pjZrlYWvA0xxlVK2j4+fFwmPmp5DY6zLPLjp /p+Z5UvK49yf2oJJpkPTwR/8E54vfwkhUrImwMNHjFvi4g9P/CkvR+uZ7iYX0dyEzWii weRZiFqPxbeW+R/Vw+eW1he+0k8Q3rs4raM1g= Received: by 10.142.62.4 with SMTP id k4mr66201wfa.35.1279736198051; Wed, 21 Jul 2010 11:16:38 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.143.21.16 with SMTP id y16ls3131496wfi.0.p; Wed, 21 Jul 2010 11:16:37 -0700 (PDT) Received: by 10.142.215.6 with SMTP id n6mr125189wfg.40.1279736196680; Wed, 21 Jul 2010 11:16:36 -0700 (PDT) Received: by 10.142.215.6 with SMTP id n6mr125187wfg.40.1279736196398; Wed, 21 Jul 2010 11:16:36 -0700 (PDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by gmr-mx.google.com with ESMTP id b1si8350784rvn.2.2010.07.21.11.16.36; Wed, 21 Jul 2010 11:16:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) client-ip=64.71.152.64; Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id DBA5B1F746; Wed, 21 Jul 2010 18:16:34 +0000 (UTC) Date: Wed, 21 Jul 2010 18:16:34 +0000 From: Eric Wong To: rack-devel@googlegroups.com Subject: Re: Patch - For caching with 304 Not Modified Message-ID: <20100721181634.GA7794@dcvr.yhbt.net> References: <39c82ee3-5030-4721-9be8-0b1927dce3f1@x21g2000yqa.googlegroups.com> MIME-Version: 1.0 In-Reply-To: <39c82ee3-5030-4721-9be8-0b1927dce3f1@x21g2000yqa.googlegroups.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Original-Sender: normalperson@yhbt.net X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) smtp.mail=normalperson@yhbt.net Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Simon Smith wrote: > This patch seems to work but it seems strange that it is missing in > the first place as there are so many users of Rack and Rails and I > cannot find any information pertaining to other users with this > problem. I am wondering if there is an alternate way to handle this > caching without modifying the rack code itself and I am just missing a > configuration option in Rails, do you know of one? Rack already includes a Rack::ConditionalGet middleware which users can load if needed. However, I suspect most Rails users use a non-Rack server such as nginx or Apache to serve static files, so having such middleware (or even Rack::File) would be redundant. -- Eric Wong