maekitalo/tntnet — pull request #13 by mwuehrer (2014-08-24 18:22:27+00:00)
Title: added compression handling for already compressed files in mbcomponent

This commit changes the behavior of files in the mbcomponent:
If enableCompression is set and client supports compression, mbcomponent is looking for the requested filename with the extension .gz at first, if this file is found, this already compressed file would be sent to the client.
if there is no file with the extension .gz than the current file would be compressed on the fly (as it was before) and sent to the client.

Example: client wants favicon.svg, with compression enabled.
server looks for favicon.svg.gz ==> if found, server sends this compressed file. (this is the new behavior)
if favicon.svg.gz not found, server will compress favicon.svg and send it compressed to the client. (this is the old behavior, now the fallback)