Skip to content

Commit

Permalink
server: fix bug where express sets Cache-Control: max-age=0 on all fi…
Browse files Browse the repository at this point in the history
…le responses
  • Loading branch information
koush committed Mar 5, 2023
1 parent ea99a54 commit 34b26c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/http-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export function createResponseInterface(res: Response, unzippedDir: string, file
}
}
}
res.sendFile(filePath);

// prefer etag
res.sendFile(filePath, {
cacheControl: false,
});
}

sendSocket(socket: net.Socket, options: HttpResponseOptions) {
Expand Down

0 comments on commit 34b26c8

Please sign in to comment.