diff --git a/routes/cache.js b/routes/cache.js index 260b85d..f58c433 100644 --- a/routes/cache.js +++ b/routes/cache.js @@ -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); diff --git a/routes/universe.js b/routes/universe.js index b60d48a..7293141 100644 --- a/routes/universe.js +++ b/routes/universe.js @@ -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); }); }