itsdun
itsdun

Reputation: 23

Why is Couchdb not compressing my SVG attachments with gzip?

i have a problem with the compression of attachments in Apache Couchdb 1.2.0 running on Ubuntu 12.04 LTS.

I've added a Content-Type image/svg+xml in the Futon Configuration Section.

attachments | compressible_types | text/*, application/javascript, application/json, application/xml, image/svg+xml

The local.ini was correctly updated. After i've restarted the couchdb, i uploaded a svg-file as attachment. I call it, the Request-Header seems to be ok (Accept-Encoding:gzip, deflate), but he Response-Header shows no encoding-section (gzip). The filesize looks not compressed.

I couldn't find a solution for this problem around the web. Do you have any solutions to solve this problem?

Thx

Upvotes: 2

Views: 415

Answers (1)

Jan Lehnardt
Jan Lehnardt

Reputation: 2659

this is case not handled in CouchDB properly. A workaround is to declare the mime-type as image/svg\+xml.

I opened a bug on the CouchDB Issue tracker: https://issues.apache.org/jira/browse/COUCHDB-1497

Upvotes: 2

Related Questions