Skip to content
Myr

Docs for staticProvider() changes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 1536d73 · Browse files · 2 files+13 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+13 added−2 removed

  • other:+13 added−2 removed

2 files+13 added−2 removed

modified:docs/guide.md+1 added-1 removed
45 unmodified lines
46 });47 48 app.configure('production', function(){49 var oneYear = 31557600000;50 app.use(express.static({ root: __dirname + '/public', maxAge: oneYear }));50 app.use(express.static(__dirname + '/public', { maxAge: oneYear }));51 app.use(express.errorHandler());52 });5354For internal and arbitrary settings Express provides the _set(key[, val])_, _enable(key)_, _disable(key)_ methods:
1154 unmodified lines
modified:docs/migrate.md+12 added-1 removed