Add explaining comment

This commit is contained in:
Sander Declerck 2025-11-24 18:29:35 +01:00
parent 5629b640cc
commit c695d0cb5d
No known key found for this signature in database

View file

@ -87,7 +87,8 @@ export function modifyNpmInfoResponse(body, headers) {
// no longer match the content so they needs to be removed before sending the response.
delete headers["etag"];
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"];
}
}