http://bugs.winehq.org/show_bug.cgi?id=26032
Summary: Please, enable gzip compression for bugs.winehq.org website Product: WineHQ Bugzilla Version: unspecified Platform: All URL: http://bugs.winehq.org/ OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P1 Component: bugzilla-unknown AssignedTo: wine-bugs@winehq.org ReportedBy: t.artem@mailcity.com
Enough said.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #1 from Austin English austinenglish@gmail.com 2011-02-08 19:33:34 CST --- *** Bug 26033 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=26032
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 URL|http://bugs.winehq.org/ | Platform|All |Other OS/Version|All |other Severity|normal |enhancement
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2011-02-09 00:51:52 CST --- What's wrong with it?
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #3 from Artem S. Tashkinov t.artem@mailcity.com 2011-02-09 03:35:29 CST --- (In reply to comment #2)
What's wrong with it?
Nothing is wrong, but gzip compression provides a nice acceleration for people with a slow Internet connection.
Also quite often people request huge lists of information (such as bug reports or mailing lists) and they are easily compressed five or even tenfold.
If you are afraid of the increased server load I have to say that gzip compression is imperceptible.
http://bugs.winehq.org/show_bug.cgi?id=26032
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |nerv@dawncrow.de Ever Confirmed|0 |1
--- Comment #4 from André H. nerv@dawncrow.de 2011-02-26 09:38:21 CST --- confirming
at least the website is compressed now...
http://bugs.winehq.org/show_bug.cgi?id=26032
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jnewman@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #5 from Jeremy Newman jnewman@codeweavers.com 2011-02-28 10:57:13 CST --- Adding gzip compression to PHP is easy, but since Bugzilla is written in PERL this is much harder to do.
The preferred way is if the Bugzilla codebase supported it natively. I am against having our Bugzilla tree deviate to far from the main Bugzilla code. On a quick look, it does not look like our version has any support for it.
Another possible way to do it would to be to enable the Apache2 mod_deflate to the bugzilla virtual server. But, I'd want to know the ramifications of that before going down that path. I'm not even sure mod_deflate will work with anything other than static content.
Somebody else will have to assist and do the legwork as I do not have the time right now to research this more in depth.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #6 from Jeremy Newman jnewman@codeweavers.com 2011-02-28 16:28:57 CST --- Turns out mod_deflate will compress based on mime type. Since Perl is outputting as text/html, it will just compress. Easy.
bugs.winehq.org is now compressed.
http://bugs.winehq.org/show_bug.cgi?id=26032
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2011-02-28 23:53:33 CST --- Thanks Jeremy.
http://bugs.winehq.org/show_bug.cgi?id=26032
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Dmitry Timoshkov dmitry@codeweavers.com 2011-02-28 23:53:42 CST --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=26032
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED |
--- Comment #9 from Artem S. Tashkinov t.artem@mailcity.com 2011-03-01 02:49:04 CST --- No so fast, guys :)
Bug lists are not compressed, e.g.:
Request:
For http://bugs.winehq.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&am...
GET /buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Wine&keywords=download&keywords_type=anywords HTTP/1.1
Host: bugs.winehq.org
Accept-Encoding: gzip, deflate
Connection: keep-alive
Response:
HTTP/1.1 200 OK
Date: Tue, 01 Mar 2011 08:44:03 GMT
Server: Apache/2.2.9 (Debian)
Keep-Alive: timeout=5
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: multipart/x-mixed-replace;boundary="------- =_aaaaaaaaaa0"
And this page weighs around 2.5MB, while after being compressed with gzip it weighs just around 140KB.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #10 from André H. nerv@dawncrow.de 2011-03-01 06:02:48 CST --- i guess that's not possible as it's too dynamic. you would wait for the server to generate the list, compress it, transfer it before your browser can decompress it and you can view it... that wouldn't be a speed up i bet.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #11 from Artem S. Tashkinov t.artem@mailcity.com 2011-03-01 06:52:04 CST --- (In reply to comment #10)
i guess that's not possible as it's too dynamic. you would wait for the server to generate the list, compress it, transfer it before your browser can decompress it and you can view it... that wouldn't be a speed up i bet.
gzip/deflate compression is applied on the fly to the output stream so I don't quite understand how contect can be "more or less" dynamic. It's either static or dynamic. :)
Also, RedHat's bugzilla begs to differ:
HTTP/1.1 200 OK
Date: Tue, 01 Mar 2011 12:50:03 GMT
Server: Apache
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 6261
Content-Type: multipart/x-mixed-replace;boundary="------- =_Ws093wD2x0sxcfQr"
Set-Cookie: Bugzilla_javascript=X; domain=bugzilla.redhat.com; path=/; expires=Tue, 15-Sep-1998 21:49:00 GMT
Connection: close
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #12 from Jeremy Newman jnewman@codeweavers.com 2011-03-01 09:21:09 CST --- I tested the url: http://bugs.winehq.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&am...
with: http://www.whatsmyip.org/http_compression/
And it is reporting that it is compressed: Original Size: 2299.13 KB Gzipped Size: 135.89 KB Data Savings: 94.09%
I noticed that bugzilla is sending the bugs lists as multi-part. The first part is just a please wait message, the second part the actual web page data. Perhaps the first part is not compressed. The bug list itself is compressed however.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #13 from Artem S. Tashkinov t.artem@mailcity.com 2011-03-01 10:14:38 CST --- My Mozilla Firefox 4 beta 12 is sending HTTP/1.1, "Accept-Encoding: gzip, deflate " request to
http://bugs.winehq.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&am...
and I receive exactly 2.5MB of uncompressed data.
Opera and Chrome both receive gzip'ed data but that's because they both *don't* support multipart/x-mixed-replace stream type.
Here's a response Google Chrome receives:
Connection:Keep-Alive Content-Encoding:gzip Content-Type:text/html; charset=UTF-8 Content-disposition:inline; filename="bugs-2011-03-01.html" Date:Tue, 01 Mar 2011 16:09:10 GMT Keep-Alive:timeout=5 Server:Apache/2.2.9 (Debian) Set-Cookie:LASTORDER=bug_status%2Cpriority%2Cassigned_to%2Cbug_id; domain=bugs.winehq.org; path=/; expires=Fri, 01-Jan-2038 00:00:00 GMT BUGLIST=X; domain=bugs.winehq.org; path=/; expires=Tue, 15-Sep-1998 21:49:00 GMT Transfer-Encoding:chunked Vary:Accept-Encoding
(In reply to comment #12)
I tested the url: http://bugs.winehq.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&am...
with: http://www.whatsmyip.org/http_compression/
And it is reporting that it is compressed: Original Size: 2299.13 KB Gzipped Size: 135.89 KB Data Savings: 94.09%
I noticed that bugzilla is sending the bugs lists as multi-part. The first part is just a please wait message, the second part the actual web page data. Perhaps the first part is not compressed. The bug list itself is compressed however.
That's because whatsmyip.org/http_compression/ PHP script also doesn't support multipart.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #14 from Jeremy Newman jnewman@codeweavers.com 2011-03-01 10:43:08 CST --- Added: AddOutputFilterByType DEFLATE multipart/x-mixed-replace to mod_deflate.
http://bugs.winehq.org/show_bug.cgi?id=26032
Artem S. Tashkinov t.artem@mailcity.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #15 from Artem S. Tashkinov t.artem@mailcity.com 2011-03-01 10:45:20 CST --- (In reply to comment #14)
Added: AddOutputFilterByType DEFLATE multipart/x-mixed-replace to mod_deflate.
Now everything works perfectly, thank you! Large bug lists load almost instantly now.
http://bugs.winehq.org/show_bug.cgi?id=26032
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Dmitry Timoshkov dmitry@codeweavers.com 2011-03-01 10:51:13 CST --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #17 from Ken Sharp kennybobs@o2.co.uk 2011-03-29 20:59:23 CDT --- How about the Wiki?
http://bugs.winehq.org/show_bug.cgi?id=26032
--- Comment #18 from Artem S. Tashkinov t.artem@mailcity.com 2012-01-10 18:14:30 CST --- (In reply to comment #17)
How about the Wiki?
Wiki is sad.