mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
compress *.htm file
This commit is contained in:
@@ -19,7 +19,7 @@ func IsGzippable(ext, mtype string) bool {
|
|||||||
switch ext {
|
switch ext {
|
||||||
case ".zip", ".rar", ".gz", ".bz2", ".xz":
|
case ".zip", ".rar", ".gz", ".bz2", ".xz":
|
||||||
return false
|
return false
|
||||||
case ".pdf", ".txt", ".html", ".css", ".js", ".json":
|
case ".pdf", ".txt", ".html", ".htm", ".css", ".js", ".json":
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(mtype, "application/") {
|
if strings.HasPrefix(mtype, "application/") {
|
||||||
|
Reference in New Issue
Block a user