Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache control headers to http static file handler + a few more mi… #2470

Merged
merged 5 commits into from
Jan 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Undo extra mime types in static file handler
  • Loading branch information
bebac authored and straight-shoota committed Jan 5, 2018
commit 131cccb75070b2161884d8d60ecf9a49e7aef4a1
3 changes: 0 additions & 3 deletions src/http/server/handlers/static_file_handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ class HTTP::StaticFileHandler
when ".htm", ".html" then "text/html"
when ".css" then "text/css"
when ".js" then "application/javascript"
when ".jpg" then "image/jpeg"
when ".png" then "image/png"
when ".svg" then "image/svg+xml"
else "application/octet-stream"
end
end
Expand Down