We are building our angular app with the cli. When we deploy it on our server, and navigate to our app. The old version of the app (components and templates) are received sometimes. Has anyone else experienced this? Solutions?
Thanks!
We are building our angular app with the cli. When we deploy it on our server, and navigate to our app. The old version of the app (components and templates) are received sometimes. Has anyone else experienced this? Solutions?
Thanks!
You have to serve your index.html with no-cache or limited cache period.
In Express, it looks like
app.use(function(req, res, next) {
res.setHeader("Cache-Control", "public, max-age=0");
return next();
});