Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Feb 26, 2025
1 parent bf19975 commit 729c756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function(req, res, next){
res.set('Cache-Control', `public, max-age=60, stale-while-revalidate=${cdn_cache}`);

if(doc){
const revision = 9; // bump to invalidate all caches
const revision = 10; // bump to invalidate all caches
const etag = `W/"${doc._id}${revision}"`;
const date = new Date(doc._published.getTime() + revision * 1000).toUTCString();
res.set('ETag', etag);
Expand Down
2 changes: 1 addition & 1 deletion routes/universe.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function get_contrib_data(user, max = 20){
rec.packages = rec.packages.concat(x.packages);
});
});
return data.sort(function(x,y){return (x.total + x.contributions > y.total + y.contributions) ? -1 : 1}).filter(x => x.login != universe).slice(0,max);
return data.sort(function(x,y){return (x.total + x.contributions > y.total + y.contributions) ? -1 : 1}).filter(x => x.login != user).slice(0,max);
});
}

Expand Down

0 comments on commit 729c756

Please sign in to comment.