Skip to content

Commit

Permalink
Stop gzipping image/*. They will be fully compressed by a image compr…
Browse files Browse the repository at this point in the history
…esser
  • Loading branch information
NI committed Dec 30, 2019
1 parent 7f4e79f commit edc6aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controller/static_page_generater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit edc6aea

Please sign in to comment.