flash
flash copied to clipboard
Session is set even not using req.flash()
By include app.use(flash())
, a cookie is set on client side even the middleware is not used to set any flash message. This will prevent caching efficiently.