Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Node.js and Express session handling - Back button problem

// caching disabled for every route
server.use(function(req, res, next) {
  res.set('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0');
  next();
});

// otherwise put the res.set() call into the route-handler you want
 
PREVIOUS NEXT
Tagged: #Express #session #handling #Back #button #problem
ADD COMMENT
Topic
Name
2+4 =