Skip to content

Commit

Permalink
Disable cache (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChappIO authored Aug 21, 2023
1 parent 99a1efb commit 41d53b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ app.get('/npm/*', packageNameMiddleware, async function (req, res, next) {
.then((pkg) => {
const { mode } = req.query;
res.type('image/png');
res.set('Cache-Control', 'no-cache, no-store');
drawBadge(pkg, parseInstallMode(mode)).pipe(res);
})
.catch(next);
Expand Down

0 comments on commit 41d53b0

Please sign in to comment.