Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
add 'js' content-type (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
YunBongtae authored and mycoolade committed Aug 29, 2019
1 parent 1f9c563 commit 4b99131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions klaytnwalletFront.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ app.use(function (req, res, next) {
if (originalPath.endsWith('.css')) {
res.set('Content-Type', 'text/css')
}
if (originalPath.endsWith('.js')) {
res.set('Content-Type', 'text/javascript')
}
res.append('Content-Encoding', 'gzip')
res.setHeader('Vary', 'Accept-Encoding')
res.setHeader('Cache-Control', 'public, max-age=512000')
Expand Down

0 comments on commit 4b99131

Please sign in to comment.