SASSType = newMediaType("text", "x-sass", []string{"sass"})
CSVType = newMediaType("text", "csv", []string{"csv"})
HTMLType = newMediaType("text", "html", []string{"html"})
- JavascriptType = newMediaType("application", "javascript", []string{"js", "jsm", "mjs"})
- TypeScriptType = newMediaType("application", "typescript", []string{"ts"})
+ JavascriptType = newMediaType("text", "javascript", []string{"js", "jsm", "mjs"})
+ TypeScriptType = newMediaType("text", "typescript", []string{"ts"})
TSXType = newMediaType("text", "tsx", []string{"tsx"})
JSXType = newMediaType("text", "jsx", []string{"jsx"})
{SCSSType, "text", "x-scss", "scss", "text/x-scss", "text/x-scss"},
{CSVType, "text", "csv", "csv", "text/csv", "text/csv"},
{HTMLType, "text", "html", "html", "text/html", "text/html"},
- {JavascriptType, "application", "javascript", "js", "application/javascript", "application/javascript"},
- {TypeScriptType, "application", "typescript", "ts", "application/typescript", "application/typescript"},
+ {JavascriptType, "text", "javascript", "js", "text/javascript", "text/javascript"},
+ {TypeScriptType, "text", "typescript", "ts", "text/typescript", "text/typescript"},
{TSXType, "text", "tsx", "tsx", "text/tsx", "text/tsx"},
{JSXType, "text", "jsx", "jsx", "text/jsx", "text/jsx"},
{JSONType, "application", "json", "json", "application/json", "application/json"},
Image Copy1: /blog/images/copy_hu8aa3346827e49d756ff4e630147c42b5_70_3x4_resize_box_3.png|image/png|3|4|
Image Copy2: /blog/images/copy2.png|image/png|3|4
Image Copy3: image/png|3|4|
-Orig: /blog/js/foo.js|application/javascript|let foo;|
-Copy1: /blog/js/copies/bar.js|application/javascript|let foo;|
-Copy2: /blog/js/copies/baz.a677329fc6c4ad947e0c7116d91f37a2.js|application/javascript|let foo;|
-Copy3: /blog/js/copies/moo.a677329fc6c4ad947e0c7116d91f37a2.min.js|application/javascript|let foo|
+Orig: /blog/js/foo.js|text/javascript|let foo;|
+Copy1: /blog/js/copies/bar.js|text/javascript|let foo;|
+Copy2: /blog/js/copies/baz.a677329fc6c4ad947e0c7116d91f37a2.js|text/javascript|let foo;|
+Copy3: /blog/js/copies/moo.a677329fc6c4ad947e0c7116d91f37a2.min.js|text/javascript|let foo|
`)