compression, encoding and redirect code