s->headers->content_type; if (defined($type) && $type =~ /text|xml|javascript|json/ && ($c->req->headers->accept_encoding // '') =~ /gzip/i) { $c->res->head