mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Prevent package manager from caching modified response
This commit is contained in:
parent
f6400e9822
commit
5629b640cc
1 changed files with 2 additions and 0 deletions
|
|
@ -87,6 +87,8 @@ export function modifyNpmInfoResponse(body, headers) {
|
||||||
// no longer match the content so they needs to be removed before sending the response.
|
// no longer match the content so they needs to be removed before sending the response.
|
||||||
delete headers["etag"];
|
delete headers["etag"];
|
||||||
delete headers["last-modified"];
|
delete headers["last-modified"];
|
||||||
|
// Todo: add comment
|
||||||
|
delete headers["cache-control"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue