mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-12-25 03:26:59 +00:00
Put staticCache back in
This commit is contained in:
parent
0a0e1636bc
commit
85fac80a6d
2 changed files with 1 additions and 2 deletions
1
TODO.md
1
TODO.md
|
@ -8,7 +8,6 @@
|
|||
* test new interface in browsers
|
||||
* compress assets
|
||||
* fix issues with deploy
|
||||
* get staticCache back in
|
||||
|
||||
|
||||
# shared version only
|
||||
|
|
|
@ -73,6 +73,7 @@ connect.createServer(
|
|||
});
|
||||
}),
|
||||
// Otherwise, static
|
||||
connect.staticCache(),
|
||||
connect.static(__dirname + '/static', { maxAge: config.staticMaxAge }),
|
||||
// Then we can loop back - and everything else should be a token,
|
||||
// so route it back to /index.html
|
||||
|
@ -82,7 +83,6 @@ connect.createServer(
|
|||
next();
|
||||
});
|
||||
}),
|
||||
// And then let static take over
|
||||
connect.static(__dirname + '/static', { maxAge: config.staticMaxAge })
|
||||
).listen(config.port, config.host);
|
||||
|
||||
|
|
Loading…
Reference in a new issue