Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-3168

Web Service responses could be compressed

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Admin, Web service
    • None

      I can see that regular web requests are being compressed which is awesome! However WS requests do not seem to be, according to Firebug:

      e.g. http://musicbrainz.org/ws/2/release/8e061dc4-790e-4587-ba53-011e7852f88d?inc=release-groups+media+recordings+puids+artist-credits+labels+isrcs+artist-rels+release-rels+url-rels+recording-rels+work-rels+recording-level-rels+work-level-rels is 1.2MB

      Firebug gives me the below (no "Content-Encoding gzip")

      Date	Thu, 04 Aug 2011 16:47:10 GMT
      Content-Type	application/xml; charset=utf-8
      Connection	keep-alive
      Keep-Alive	timeout=20
      Server	nginx/0.7.65
      Content-Length	1253068
      

      with request (accepting gzip, deflate)

      Request Headersview source
      Host	musicbrainz.org
      User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
      Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language	en-nz,en-au;q=0.8,en-gb;q=0.6,en;q=0.4,en-us;q=0.2
      Accept-Encoding	gzip, deflate
      Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Connection	keep-alive
      Cookie	javascript=true; remember_login=SNIP; tracklist_mode=basic; musicbrainz_server_session=efb637a44ac74e90e23c11f34f483fd3cca22214
      

      This is important for the links like above; MB's bandwidth to Singapore appears to be about 30-40kB/s so it would probably improve the speed of that request significantly.

            djce Dave Evans
            voiceinsideyou voiceinsideyou
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package