HTTP Server: implement gzip and deflate encodings, cache compressed result