Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js clear cache

app.get('/dashboard', loadUser, function(req, res){
  res.header('Cache-Control', 'no-cache');
  res.header('Expires', 'Fri, 31 Dec 1998 12:00:00 GMT');

  res.render('dashboard', {
    username: req.session.username
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #js #clear #cache
ADD COMMENT
Topic
Name
7+3 =