Serve compressed content XOR range: bytes with nginx -
i'm serving static content using nginx. i'd support both range requests , gzip compression.
unfortunately, these 2 features not compatible in nginx. adding gzip on; config disables range requests.
assuming can't gzip everything, next best option enable gzip requests lack range: header. possible?
the simpliest solution add these lines next every "gzip on" in configuration:
if ($http_range) { gzip off; } even though "if" evil, in case alternatives worse. if there @ all.
Comments
Post a Comment