It just doesn't match how upcache tags are set w.r.t. express middlewares. It would be more useful to configure upcache.tag with some filter(name, req) function.