/** * disable Back forward cache */ module.exports = (req, res, next) => { res.set({ 'Cache-Control': 'no-cache, max-age=0, must-revalidate, no-store', Pragma: 'no-cache', Expires: 0 }); next(); };