From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.171.136 with SMTP id w8cs53908hbe; Wed, 21 Jul 2010 11:59:23 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCKWK8Oa0EhCJh53iBBoE4Sjhwg@googlegroups.com designates 10.100.10.10 as permitted sender) client-ip=10.100.10.10; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCKWK8Oa0EhCJh53iBBoE4Sjhwg@googlegroups.com designates 10.100.10.10 as permitted sender) smtp.mail=rack-devel+bncCKWK8Oa0EhCJh53iBBoE4Sjhwg@googlegroups.com; dkim=pass header.i=rack-devel+bncCKWK8Oa0EhCJh53iBBoE4Sjhwg@googlegroups.com Received: from mr.google.com ([10.100.10.10]) by 10.100.10.10 with SMTP id 10mr392192anj.72.1279738762743 (num_hops = 1); Wed, 21 Jul 2010 11:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:mime-version :received:received:date:in-reply-to:x-ip:references:user-agent :x-http-via:x-http-useragent:message-id:subject:from:to :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; bh=ipMi45u/OMyhlp9k49xs2K4iRYc6pRFQfJAnqs/35FI=; b=4g93+HqDFOrO06WE3NhajVb3zbkmnWjRVv8nwGiDcNaptDZAF1rqxTF0blOcn5HHqD r/AvH1YreBcA/sgzPqcN0g07r9mipqREHus8q/j9jLgehts+3Mej16rOcq0Eu3rrnHVW w+9alga0u0NrkZ7f9uB8KMRN2lV/PCPiHIGcA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:in-reply-to:x-ip:references :user-agent:x-http-via:x-http-useragent:message-id:subject:from:to :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type:content-transfer-encoding; b=0xwcjHDN/uAPHj3Md1TvN4Vox274q52EOVQI48kvI636k+kAMer0pJR4+HxiJpTr0E OsAwNxAPenIKe+Er80ewAO2c3/UBZFT6waYUFon1lTbB/j0LiZkWWwUGPGwUxcW1apKs m7ih8iqhEmjbADZqsGNDSbysL4r2glsXUKxz4= Received: by 10.100.10.10 with SMTP id 10mr74914anj.72.1279738761567; Wed, 21 Jul 2010 11:59:21 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.101.200.2 with SMTP id c2ls2169694anq.5.p; Wed, 21 Jul 2010 11:59:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.175.33 with SMTP id c33mr82875anp.1.1279738760668; Wed, 21 Jul 2010 11:59:20 -0700 (PDT) Received: by x21g2000yqa.googlegroups.com with HTTP; Wed, 21 Jul 2010 11:59:20 -0700 (PDT) Date: Wed, 21 Jul 2010 11:59:20 -0700 (PDT) In-Reply-To: <20100721181634.GA7794@dcvr.yhbt.net> X-IP: 167.107.191.217 References: <39c82ee3-5030-4721-9be8-0b1927dce3f1@x21g2000yqa.googlegroups.com> <20100721181634.GA7794@dcvr.yhbt.net> User-Agent: G2/1.0 X-HTTP-Via: 1.1 webwasher (Webwasher 6.8.7.7306) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6,gzip(gfe) Message-ID: <22737efc-968b-4858-a0d1-a27d8b1ab758@x21g2000yqa.googlegroups.com> Subject: Re: Patch - For caching with 304 Not Modified From: Simon Smith To: Rack Development X-Original-Sender: amazingdancingbear@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: List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'll take a look into the configuration of the Apache server to serve these files. I didn't know you could set it up like that. Thanks, Simon On Jul 21, 1:16=A0pm, Eric Wong wrote: > 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