Merge pull request #7 from DaniElectra/npdl-cache

This commit is contained in:
Jonathan Barrow 2024-05-04 20:17:14 -04:00 committed by GitHub
commit 61f8611cf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,6 +36,7 @@ npdl.get([
return;
}
response.setHeader('Last-Modified', new Date(Number(file.updated)).toUTCString());
readStream.pipe(response);
});
@ -43,4 +44,4 @@ const router = express.Router();
router.use(subdomain('npdl.cdn', npdl));
export default router;
export default router;