You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ let cache5min = cache('5 min') // continue to use normally
146
146
enabled:true|false, // if false, turns off caching globally (useful on dev)
147
147
redisClient: client, // if provided, uses the [node-redis](https://github.com/NodeRedis/node_redis) client instead of [memory-cache](https://github.com/ptarjan/node-cache)
148
148
appendKey: [], // if you want the key (which is the URL) to be appended by something in the req object, put req properties here that point to what you want appended. I.E. req.session.id would be ['session', 'id']
149
+
headerBlacklist: [], // list of headers that should never be cached
149
150
statusCodes: {
150
151
exclude: [], // list status codes to specifically exclude (e.g. [404, 403] cache all responses unless they had a 404 or 403 status)
151
152
include: [], // list status codes to require (e.g. [200] caches ONLY responses with a success/200 code)
0 commit comments