From 6aa0a364f2c2da8514449fff94f06d8d2b863f40 Mon Sep 17 00:00:00 2001 From: Markko Legonkov Date: Sat, 1 Apr 2017 13:40:56 +0300 Subject: [PATCH] add cache-control header to client source --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index 9f73d5faf8..c86f4e92c6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -321,6 +321,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.setHeader('X-SourceMap', 'socket.io.js.map');