Add some cache-controlling headers on returned encrypted objects.
This commit is contained in:
parent
0ce52bf299
commit
8df9cc54cb
@ -52,7 +52,11 @@ const server = http.createServer((req, res) => {
|
||||
}
|
||||
|
||||
const readStream = fs.createReadStream(filePath);
|
||||
res.writeHead(200, { 'Content-Type': 'application/octet-stream' });
|
||||
res.writeHead(200, {
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'Cache-Control': 'no-store, no-cache, must-revalidate',
|
||||
'Expires': 0
|
||||
});
|
||||
readStream.pipe(res);
|
||||
|
||||
// Delete immediately after stream ends
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user