Skip to content

Commit

Permalink
Change .js MIME type to text/javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
adityamandaleeka committed Mar 18, 2022
1 parent 8b62081 commit b6000f8
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 b6000f8

Please sign in to comment.