Skip to content

Commit

Permalink
Add Cache-Control to res.writeHead
Browse files Browse the repository at this point in the history
  • Loading branch information
TueeNguyen committed Jan 31, 2022
1 parent 306f61d commit 1a3b7a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/autodeployment/builds.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ function handleBuildByName(buildName) {

// If we have a build process, pipe that, otherwise we're done
const pipeLog = () => (out ? out.pipe(res) : res.end());
res.setHeader('Cache-Control', 'no-cache');
res.writeHead(200, { 'Content-Type': 'text/plain' });

res.writeHead(200, { 'Content-Type': 'text/plain', 'Cache-Control': 'no-cache' });
console.log(res.headers);
// Send the cached build log, which is either everything, or everything so far.
// After we're done, pipe the rest of the log as it happens.
if (cache) {
Expand Down

0 comments on commit 1a3b7a5

Please sign in to comment.