Prevent package manager from caching modified response

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

View file

@ -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"];
} }
} }
} }