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

监听下载过程中禁用网络在启动网络item.getReceivedBytes()清零 #8

Open
MehJv opened this issue Jan 16, 2023 · 1 comment

Comments

@MehJv
Copy link

MehJv commented Jan 16, 2023

大佬 我在下载中把网络禁用掉后当前下载的就暂停了 然后我启动网络后点击继续item.getReceivedBytes()就从零开始下载
这是个什么原因呢 是他这个监听方法的原因吗 有什么方法可以杜绝这个现象吗
我在网上搜索了一圈没找到解决方法
image

@MehJv
Copy link
Author

MehJv commented Jan 16, 2023

大佬 是因为Last-Modified 和 ETag的头部值嘛
image
这个是后台提供的下载接口 我看是没有Last-Modified的 是这个原因才会导致他清零吗
image

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