We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 627089d commit 26d4974Copy full SHA for 26d4974
server/static_file_server.go
@@ -19,11 +19,23 @@ import (
19
)
20
21
var mimeTypes = map[string]string{
22
- ".js": "application/javascript",
23
- ".css": "text/css",
24
- ".png": "image/png",
25
- ".jpg": "image/jpeg",
26
- ".gif": "image/gif",
+ ".cjs": "application/javascript",
+ ".css": "text/css",
+ ".eot": "font/eot",
+ ".gif": "image/gif",
+ ".ico": "image/x-icon",
27
+ ".jpg": "image/jpeg",
28
+ ".js": "application/javascript",
29
+ ".json": "application/json",
30
+ ".less": "text/plain",
31
+ ".map": "application/json",
32
+ ".otf": "font/otf",
33
+ ".png": "image/png",
34
+ ".svg": "image/svg+xml",
35
+ ".ttf": "font/ttf",
36
+ ".txt": "text/plain",
37
+ ".woff": "font/woff",
38
+ ".woff2": "font/woff2",
39
}
40
41
func StaticFileServer(root http.FileSystem) http.Handler {
0 commit comments