Force no-cache on homepage
This commit is contained in:
parent
6c9221a652
commit
2f963bc27c
1 changed files with 3 additions and 3 deletions
2
app.js
2
app.js
|
@ -35,7 +35,7 @@ app.use(serve('public', { maxage: 31536000000 }));
|
||||||
|
|
||||||
const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, '/public/dist/manifest.json')));
|
const manifest = JSON.parse(fs.readFileSync(path.join(__dirname, '/public/dist/manifest.json')));
|
||||||
|
|
||||||
app.use(function *(next) {
|
app.use(function * (next) {
|
||||||
this.state = { manifest };
|
this.state = { manifest };
|
||||||
yield next;
|
yield next;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue