Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify cache time on get requests #1

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

Ability to specify cache time on get requests #1

ghost opened this issue Jul 25, 2011 · 1 comment

Comments

@ghost
Copy link

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
Copy link
Owner

closed with 66e2f52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant