-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: remove 4.x support & fix test #3
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 4 4
Lines 10 6 -4
=====================================
- Hits 10 6 -4
Continue to review full report at Codecov.
|
.autod.conf.js
Outdated
@@ -4,8 +4,8 @@ module.exports = { | |||
write: true, | |||
prefix: '^', | |||
test: [ | |||
'test', | |||
'benchmark', | |||
'test', |
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.
缩进少了一个空格
README.md
Outdated
@@ -22,6 +22,8 @@ | |||
|
|||
Wrap [koa-etag](https://github.com/koajs/etag) and [koa-conditional-get](https://github.com/koajs/conditional-get) for egg | |||
|
|||
**We recommend to use nginx to do this for better performance rather than use this plugin.** |
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.
[nginx etag](http://nginx.org/en/docs/http/ngx_http_core_module.html#etag)
@@ -7,22 +7,21 @@ | |||
}, | |||
"keywords": [ | |||
"egg", | |||
"eggPlugin", | |||
"egg-plugin" |
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.
为啥删除这些关键词?不是方便 npm 搜索吗?
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.
其他没问题了
README.zh_CN.md
Outdated
@@ -26,6 +26,8 @@ | |||
|
|||
此功能在一些内容变化不多的场景,能有效避免网络下载。 | |||
|
|||
**通常来说,基于性能方面的考虑,在生产环境我们会使用 nginx 替代该插件来计算 etag 。** |
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.
nginx -> Nginx
etag -> ETag
f54f559
to
4c8f779
Compare
done, review again |
ping @huacnlee, need more +1 |
README.md
Outdated
@@ -22,6 +22,8 @@ | |||
|
|||
Wrap [koa-etag](https://github.com/koajs/etag) and [koa-conditional-get](https://github.com/koajs/conditional-get) for egg | |||
|
|||
**For better performance, we recommend to use [Nginx Etag](http://nginx.org/en/docs/http/ngx_http_core_module.html#etag) rather than use this plugin.** |
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.
Etag -> ETag
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.
done
Checklist
npm test
passesAffected core subsystem(s)
Description of change