digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

resource_lib: remove useless compression (+patch) #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open /lib/images/admin_search.png
2. look at responce headers in firebug
content-encoding: gzip. 
This is useless CPU cycles.

Patch attached.
Patch adds z_media_identify:is_mime_compressed/1 and fixes 
resource_lib:encodings_provided/2.

Original issue reported on code.google.com by hellla...@gmail.com on 6 Apr 2011 at 11:18

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 27c5e71284fb.

Original comment by scherpenisse on 7 Apr 2011 at 6:19

GoogleCodeExporter commented 8 years ago
nice patch, thanks.
I tweaked it a bit regarding documentation etc.

Original comment by scherpenisse on 7 Apr 2011 at 6:19