duplicate MIME type "text/html"?

Memek Gue Bolong Gan picture Memek Gue Bolong Gan · Jun 25, 2011 · Viewed 32k times · Source

I have this in Nginx configuration files

gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

but Nginx give error when starting up

[warn]: duplicate MIME type "text/html" in /etc/nginx/nginx.conf:25

What is actually duplicate to text/html? Is it text/plain?

Answer

duskwuff -inactive- picture duskwuff -inactive- · Jun 25, 2011

For the option gzip_types, the mime-type text/html is always included by default, so you don't need to specify it explicitly.