Revert "Set Cache-Control for static resources"
This reverts commit 7510e75688
.
This commit is contained in:
parent
e75f37031a
commit
e8c3820c49
@ -91,7 +91,7 @@ app.use(router.routes());
|
|||||||
app.use(router.allowedMethods());
|
app.use(router.allowedMethods());
|
||||||
|
|
||||||
// serve static files
|
// serve static files
|
||||||
app.use(serve(__dirname + '/static', { maxage:31536000000 }));
|
app.use(serve(__dirname + '/static'));
|
||||||
|
|
||||||
app.on('error', (error, ctx) => {
|
app.on('error', (error, ctx) => {
|
||||||
if (error.status) {
|
if (error.status) {
|
||||||
|
Loading…
Reference in New Issue
Block a user