From b00ae50be65d1bc88fa95145f1c486a6886a6b76 Mon Sep 17 00:00:00 2001 From: Markko Legonkov Date: Tue, 20 Nov 2018 09:02:04 +0200 Subject: [PATCH] [feat] Add cache-control header when serving the client source (#2907) --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index 388fecd4c0..5287e4ead0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -370,6 +370,7 @@ Server.prototype.serve = function(req, res){ } debug('serve client source'); + res.setHeader("Cache-Control", "public, max-age=0"); res.setHeader('Content-Type', 'application/javascript'); res.setHeader('ETag', expectedEtag); res.writeHead(200);