Skip to content

Commit

Permalink
[feat] Add cache-control header when serving the client source (socke…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlego authored and darrachequesne committed Nov 20, 2018
1 parent 14a9376 commit 9ce9569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
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 9ce9569

Please sign in to comment.