Answer the question
In order to leave comments, you need to log in
What is the correct way to cache-control in the get request of a node.js application?
Good evening, please tell me how to correctly arrange caching in a get request?
Found this solution
var options = {host:'host.com',path:urlPath,headers:{'Cache-Control':'no-cache'}}
http.get(options, function(res){
//
});
router.get('/path', async (req, res) => {
res.render('.......');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question