Ability to specify cache time on get requests #1

ghost opened this Issue Jul 25, 2011 · 1 comment


None yet
1 participant

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)


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