Procházet zdrojové kódy

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

jomo před 10 roky
rodič
revize
6945cda8d6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      routes/avatars.js

+ 1 - 1
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;