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
I would like to create a new entry when there is a difference in the header. For example for X-Requested-With or if a cookie is present. Is this something I can do using this module?
The text was updated successfully, but these errors were encountered:
Yes, you could do so using the res.express_redis_cache_name variable. For example:
app.get('/',// pre-cache middlewarefunction(req,res,next){// If set, express_redis_cache_name will be used as the cache nameres.express_redis_cache_name=req.path+req.get('x-requested-with');next();},// cache middlewarecache.route(),// your route middlewarefunction(req,res){/* ... */});
Hi,
I would like to create a new entry when there is a difference in the header. For example for X-Requested-With or if a cookie is present. Is this something I can do using this module?
The text was updated successfully, but these errors were encountered: