I'm hosting my little project on Heroku.
My problem is that when I write to an HTML file it's code, for example
fs.writeFile('home.html', <html><body>Hello</body><html>, function (err) {
if (err) return console.log(err);
});
It write to the file and everything is ok but it doesn't update it. So if I would enter the page after the update, I'll see the old one. I've tested it offline and it worked ok.
It's not taking the page from the cache. I've put
<meta http-equiv="expires" content="0">
In the HTML file and it didn't help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…