option for static serve to check if-modified-since#994
Conversation
|
Is there a reason why this build failed? It looks like a travis config issue. |
|
Looks like an eslint config issue. I've updated master with the appropriate change. |
|
I fixed some lint issues... the tests for static don't work on windows, so I didn't try writing any tests. |
|
It might need to - saw something similar filed against ecstatic a little bit ago: |
|
Thanks for the PR! Can you elaborate with the issue with windows, I'm not familiar. |
|
Date is still an issue in but if you do (windows) So - if someone sends a super malformed request, it fails. (It doesn't show up in my logs..) Does that matter? |
|
In 5.x the uncaughtException handlers are going to be off by default, so yes, this would crash the server. |
|
I had borrowed some of the code from here which will then also also crash: but later, https://github.com/restify/node-restify/blob/4.x/lib/plugins/conditional_request.js#L162 is wrapped in a try/catch, I guess that's what we have to do in both these places? This was pushed upstream in v8 to not throw an exception, but current versions of node still throw. |
|
Yeah, I think it's reasonable to wrap in try/catch like in the conditional request plugin. Thanks for digging into it! |
|
is it known when it can be expected ot be merged? |
|
I think once @avimar gets a chance to add the try/catch in there I'd be happy to merge this in. That said, I think we'd like if you could file this PR against the restify/plugins repo instead. For our next 5.x release, all major plugins will be removed from core. |
|
Closing in favor of restify/plugins#23 |
Mentioned in #993