cache non-existing UUIDs

This commit is contained in:
jomo
2014-11-02 16:37:30 +01:00
committed by Jake
parent 1464604536
commit b59d6ced07
4 changed files with 32 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ router.get('/:uuid', function(req, res) {
}
} else if (status == 1 || status == 2) {
sendimage(200, status == 1, image);
} else if (status == 3) {
} else if (status == 0 || status == 3) {
handle_404(def);
} else {
console.error("unexpected error/status");