kapouer / upcache

Caching proxy dynamically configured by upstream applications
MIT License
15 stars 1 forks source link

Replacement in tag names with req.params is not useful #25

Open kapouer opened 6 years ago

kapouer commented 6 years ago

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.

kapouer commented 5 years ago

Example: https://github.com/pageboard/server/blob/c0ca8dee8a1e5e6ea77fbcc407198a2a7b3c76c8/packages/cache/index.js#L16 Express "params" is useful for a single route, but tag usually applies to many routes at once.