-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fix/http cache should not intercept multi times #619
Fix/http cache should not intercept multi times #619
Conversation
wssgcg1213
commented
Aug 23, 2021
- 修复缓存文件在命中缓存的情况下, 再去写入导致文件大于 2*64K 的时候, 会被截断的问题
abdfb92
to
c98f400
Compare
这个有测试用例吗? |
import 'package:path/path.dart' as path; | ||
|
||
import 'http_client_response.dart'; | ||
|
||
const String HttpHeadersCacheHits = 'cache-hits'; | ||
const String HttpCacheHit = 'HIT'; | ||
const String HttpCacheMiss = 'MISS'; |
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.
字符串常量大写下划线分割。
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.
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.
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.
JS 之所以习惯于 SCREAMING_CAPS 是因为早期 var
的声明方式无法给 identifier 标识常量。对于有 const
修饰符的语言就无此必要了