mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-01 01:30:21 +01:00
temporarily remove staticCache
This commit is contained in:
parent
e0941d5ac9
commit
fb0c439879
1 changed files with 0 additions and 2 deletions
|
@ -73,7 +73,6 @@ connect.createServer(
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
// Otherwise, static
|
// Otherwise, static
|
||||||
connect.staticCache(),
|
|
||||||
connect.static(__dirname + '/static', { maxAge: config.staticMaxAge }),
|
connect.static(__dirname + '/static', { maxAge: config.staticMaxAge }),
|
||||||
// Then we can loop back - and everything else should be a token,
|
// Then we can loop back - and everything else should be a token,
|
||||||
// so route it back to /index.html
|
// so route it back to /index.html
|
||||||
|
@ -84,7 +83,6 @@ connect.createServer(
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
// And then let static take over
|
// And then let static take over
|
||||||
connect.staticCache(),
|
|
||||||
connect.static(__dirname + '/static', { maxAge: config.staticMaxAge })
|
connect.static(__dirname + '/static', { maxAge: config.staticMaxAge })
|
||||||
).listen(config.port, config.host);
|
).listen(config.port, config.host);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue