-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Enable customizable cache time #404
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
Conversation
Added support for string args. |
Are there any updates on this? Is something missing in order to merge this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of passing a function like this through the CLI. Would it be reasonable to accept a JS filename to execute, or at least encourage the user to use require
?
You'll need to merge or rebase master, your branch doesnt run tests on Node 12 or 13 due to an outdated |
a cache argument. Added logic to support inline and imported cache functions. Fixes (http-party#63)
Closing as out-of-scope, see #63 (comment) |
Ecstatic supports passing a function as a cache argument, but http-server passes the argument as a string. Added eval to make the function work. Also updated tests.
Fixes #63