From 4b991314f8d7c5a5c982c4ea0ba7ae2796e8654d Mon Sep 17 00:00:00 2001 From: YunBongtae Date: Thu, 29 Aug 2019 14:00:01 +0900 Subject: [PATCH] add 'js' content-type (#12) --- klaytnwalletFront.production.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/klaytnwalletFront.production.js b/klaytnwalletFront.production.js index bb3f078..f3271c6 100644 --- a/klaytnwalletFront.production.js +++ b/klaytnwalletFront.production.js @@ -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')