flush(STDOUT) + mod_deflate - was: mix pre-compressed and mod_deflate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
>
> 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.
>
> 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?
>
After more playing with it, the high latency under mod_deflate is caused
by the change required to make 'flush' work (setting a low SetOutputBuffer).

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).

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux