Skip to content

Commit 1bd0f15

Browse files
authored
Prefer text/javascript as that's the current recommended mime type for JavaScript files.
1 parent 7acfe49 commit 1bd0f15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rack/mime.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def match?(value, matcher)
290290
".jpg" => "image/jpeg",
291291
".jpgv" => "video/jpeg",
292292
".jpm" => "video/jpm",
293-
".js" => "application/javascript",
293+
".js" => "text/javascript",
294294
".json" => "application/json",
295295
".karbon" => "application/vnd.kde.karbon",
296296
".kfo" => "application/vnd.kde.kformula",

0 commit comments

Comments
 (0)