Skip to content

Commit

Permalink
[feat] Add cache-control header when serving the client source (#2907)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlego authored and darrachequesne committed Nov 20, 2018
1 parent d3c653d commit b00ae50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Expand Up @@ -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);
Expand Down

0 comments on commit b00ae50

Please sign in to comment.