“Node.js und Express -Sitzungshandhabung - Rückbuttonproblem” Code-Antworten

Node.js und Express -Sitzungshandhabung - Rückbuttonproblem

res.header('Cache-Control', 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0');
SAMER SAEID

Node.js und Express -Sitzungshandhabung - Rückbuttonproblem

res.header('Cache-Control', 'no-cache');
SAMER SAEID

Node.js und Express -Sitzungshandhabung - Rückbuttonproblem

// 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
SAMER SAEID

Ähnliche Antworten wie “Node.js und Express -Sitzungshandhabung - Rückbuttonproblem”

Fragen ähnlich wie “Node.js und Express -Sitzungshandhabung - Rückbuttonproblem”

Weitere verwandte Antworten zu “Node.js und Express -Sitzungshandhabung - Rückbuttonproblem” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen