From 6945cda8d65b24e46266b9807abbf42499ddf29d Mon Sep 17 00:00:00 2001 From: jomo Date: Thu, 27 Nov 2014 13:36:22 +0100 Subject: [PATCH] remove redundant etag modifications helm and size are URL parameters. An Etag is an identifier for a single URL, not multiple --- routes/avatars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/avatars.js b/routes/avatars.js index 6b7bf91..f546466 100644 --- a/routes/avatars.js +++ b/routes/avatars.js @@ -82,7 +82,7 @@ router.get('/avatars/:uuid.:ext?', function(req, res) { if (err) { logging.error(err); } - etag = hash && hash.substr(0, 32) + (helm ? "-helm-" : "-face-") + size || "none"; + etag = hash && hash.substr(0, 32) || "none"; var matches = req.get("If-None-Match") == '"' + etag + '"'; if (image) { var http_status = 200;