mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Add explaining comment
This commit is contained in:
parent
5629b640cc
commit
c695d0cb5d
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +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
|
// Removing the cache-control header will prevent the package manager from caching
|
||||||
|
// the modified response.
|
||||||
delete headers["cache-control"];
|
delete headers["cache-control"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue