Skip to content

Commit

Permalink
Merge pull request #40771 from adityamandaleeka/add_textjs_mimetype
Browse files Browse the repository at this point in the history
Change .js MIME type to text/javascript
  • Loading branch information
adityamandaleeka authored Mar 23, 2022
2 parents 4686703 + b6000f8 commit 8d6554e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public FileExtensionContentTypeProvider()
{ ".jpe", "image/jpeg" },
{ ".jpeg", "image/jpeg" },
{ ".jpg", "image/jpeg" },
{ ".js", "application/javascript" },
{ ".js", "text/javascript" },
{ ".json", "application/json" },
{ ".jsx", "text/jscript" },
{ ".latex", "application/x-latex" },
Expand Down Expand Up @@ -181,6 +181,7 @@ public FileExtensionContentTypeProvider()
{ ".mid", "audio/mid" },
{ ".midi", "audio/mid" },
{ ".mix", "application/octet-stream" },
{ ".mjs", "text/javascript" },
{ ".mmf", "application/x-smaf" },
{ ".mno", "text/xml" },
{ ".mny", "application/x-msmoney" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class ResponseCompressionDefaults
// Static files
"text/css",
"application/javascript",
"text/javascript",
// MVC
"text/html",
"application/xml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public FileExtensionContentTypeProvider()
{ ".jpe", "image/jpeg" },
{ ".jpeg", "image/jpeg" },
{ ".jpg", "image/jpeg" },
{ ".js", "application/javascript" },
{ ".js", "text/javascript" },
{ ".json", "application/json" },
{ ".jsx", "text/jscript" },
{ ".latex", "application/x-latex" },
Expand Down

0 comments on commit 8d6554e

Please sign in to comment.