Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC96F5669 for ; Tue, 10 May 2011 21:46:52 +0000 (UTC) Received: (qmail 25595 invoked by uid 500); 10 May 2011 21:46:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 25512 invoked by uid 500); 10 May 2011 21:46:49 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 25504 invoked by uid 99); 10 May 2011 21:46:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 21:46:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of amacks@harvardbusiness.org designates 128.103.217.229 as permitted sender) Received: from [128.103.217.229] (HELO wt-prod-cas01.ad.hbsp.harvard.edu) (128.103.217.229) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 21:46:41 +0000 Received: from WT-PROD-MBS01.ad.hbsp.harvard.edu ([fe80::c82d:5d8f:6845:2901]) by wt-prod-cas01 ([10.103.100.226]) with mapi id 14.01.0270.001; Tue, 10 May 2011 17:46:20 -0400 From: "Macks, Aaron" To: "" Thread-Topic: [users@httpd] flush(STDOUT) + mod_deflate - was: mix pre-compressed and mod_deflate Thread-Index: AQHMD1rMMt2t3DHtZ0yAPUaggMpYCpSG27yA Date: Tue, 10 May 2011 21:46:19 +0000 Message-ID: <2A434FD2-84FE-463C-B20D-08CDEC1FFFBE@harvardbusiness.org> References: <4DC98088.20607@yahoo-inc.com> <4DC9B07F.8040503@yahoo-inc.com> In-Reply-To: <4DC9B07F.8040503@yahoo-inc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [76.24.23.55] Content-Type: text/plain; charset="us-ascii" Content-ID: <16E889B8B796694B8C4F4AE4BE07985F@harvardbusiness.org> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] flush(STDOUT) + mod_deflate - was: mix pre-compressed and mod_deflate Can you have the .js get called from a different VHOST (probably will need = a FQ url) and configure the "static" vhost and the "cgi" vhost each tuned t= o the specific purpose A -- Aaron Macks Sr. Unix Systems Engineer Harvard Business Publishing 300 North Beacon St. | Watertown, MA 02472 (617) 783-7461 | Fax: (617) 783-7467 www.harvardbusiness.org | Cell:(978) 317-3614 On May 10, 2011, at 5:39 PM, Adam Schrotenboer wrote: > On 05/10/2011 11:14 AM, Adam Schrotenboer wrote: >> I have a reasonably working mod_rewrite solution for serving >> pre-compressed files. But if I enable mod_deflate, it seems to override >> my mod_rewrite method. >>=20 >> Basic problem is this: >> serving jquery.js with mod_deflate takes 1sec to load, serving it >> pre-compressed (and mod_deflate disabled) takes 180msec to load. >> With mod_rewrite + mod_deflate enabled, I get the same 1sec to load this >> file. >>=20 >> So I want to pre-compress some files, and have the rest be compressed on >> the fly. How do I make mod_deflate get out of the way for pre-compressed >> files? >>=20 > After more playing with it, the high latency under mod_deflate is caused > by the change required to make 'flush' work (setting a low SetOutputBuffe= r). >=20 > I'm _trying_ to make the javascript start being loaded while the CGI > finishes putting together the page. It seems I can have one or the other > (working flush, or fast mod_deflate). >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project= . > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org >=20 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org