Categories
caching express node.js

Caching in Node Express: How do you whitelist/blacklist views?

Express has a builtin cache mechanism, set up with app.enable(‘view cache’). But how do you discriminate between views which should be cached and views which should always be served fresh?