Stop gzipping image/*. They will be fully compressed by a image compresser

This commit is contained in:
NI
2019-12-30 18:41:51 +08:00
parent 7f4e79f10d
commit edc6aeab92

View File

@@ -314,8 +314,8 @@ func parseFile(
mimeType = "application/binary"
}
if strings.HasPrefix(mimeType, "image/x-icon") {
// Don't compress icons
if strings.HasPrefix(mimeType, "image/") {
// Don't compress images
} else if strings.HasPrefix(mimeType, "application/font-woff") {
// Don't compress web fonts
} else {