2
0
Эх сурвалжийг харах

remove redundant etag modifications
helm and size are URL parameters. An Etag is an identifier for a single URL, not multiple

jomo 10 жил өмнө
parent
commit
6945cda8d6

+ 1 - 1
routes/avatars.js

@@ -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;