Welcome! Log In Create A New Profile

Advanced

Non standard mime types are not recognized by gzip_types?

lo
August 16, 2010 04:55PM
Hi.

nginx/0.7.66 on Debian Stable

We have an application that sends the content type:

Content-Type: application/vnd.companyname.product;version=1.0


We have nginx as a proxy to these application servers. We would like nginx to gzip this data. We have tried the following for gzip_types:

gzip_types application/vnd application/vnd.companyname application/companyname.product 'application/vnd.companyname.product;version=1.0' application/vnd.companyname.product\;version=1.0

(nginx was complaining of the unexpected ; without quotes or escape)

However, this content type has not been gzip'd per Content-Encoding and size. gzip works correctly for types text/html, application/json, and so on.

Are we missing something or must we wait for 0.8.x for wildcard matching with gzip_types?

Thanks!
Subject Author Posted

Non standard mime types are not recognized by gzip_types?

lo August 16, 2010 04:55PM

Re: Non standard mime types are not recognized by gzip_types?

Maxim Dounin August 16, 2010 06:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready