remove redundant etag modifications

helm and size are URL parameters. An Etag is an identifier for a single URL, not multiple
This commit is contained in:
jomo 2014-11-27 13:36:22 +01:00
parent 37d1f3c2da
commit 6945cda8d6

View File

@ -82,7 +82,7 @@ router.get('/avatars/:uuid.:ext?', function(req, res) {
if (err) { if (err) {
logging.error(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 + '"'; var matches = req.get("If-None-Match") == '"' + etag + '"';
if (image) { if (image) {
var http_status = 200; var http_status = 200;