Stop gzipping image/*. They will be fully compressed by a image compresser
This commit is contained in:
@@ -314,8 +314,8 @@ func parseFile(
|
|||||||
mimeType = "application/binary"
|
mimeType = "application/binary"
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(mimeType, "image/x-icon") {
|
if strings.HasPrefix(mimeType, "image/") {
|
||||||
// Don't compress icons
|
// Don't compress images
|
||||||
} else if strings.HasPrefix(mimeType, "application/font-woff") {
|
} else if strings.HasPrefix(mimeType, "application/font-woff") {
|
||||||
// Don't compress web fonts
|
// Don't compress web fonts
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user