duplicate MIME type "text/html"?

NginxMime Types

Nginx Problem Overview


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?

Nginx Solutions


Solution 1 - Nginx

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMemek Gue Bolong GanView Question on Stackoverflow
Solution 1 - Nginxuser149341View Answer on Stackoverflow