Ability to specify cache time on get requests #1

Closed
ghost opened this Issue Jul 25, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Jul 25, 2011

Would be nice with an option to specify a cache option when setting a route

router.file(__dirname + '/static/404.html',{status:404, cacheMaxAge:60});
this would set the http header "cache-control" to "max-age=60" for 1 min client side cache

default should not set the http cache-control header (as it currently does)

Owner

mafintosh commented Jul 25, 2011

closed with 66e2f52

mafintosh closed this Jul 25, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment