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"
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user