# Firefox大文件下载断点续传修复

Original title: Making big downloads resumable in Firefox

> Hacker News story 50061791 · language: zh · submitted 2026-10-12
> Web version: https://zeli.app/zh/story/50061791
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 277 · by [speckx](<https://news.ycombinator.com/user?id=speckx>) · 💬 132
[original](<https://lunarwatcher.codeberg.page/til/firefox/resumable-big-downloads.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50061791>)

## Summary

自Firefox 28版本起，默认的network.http.response.timeout设置为300秒，这导致大文件下载在出错后无法恢复，即使服务器支持断点续传也无济于事。通过进入about:config并将network.http.response.timeout设为0或极大值，可以显著改善大文件下载的稳定性并实现真正的断点续传。虽然Firefox对断点续传的处理机制尚不明确，但实验表明其依赖连接超时而非.part文件。此外，使用wget -c命令作为替代方案同样稳定有效。

## Key quote

> 将network.http.response.timeout设置为0似乎能让大文件下载既支持断点续传又更加稳定。

## HN discussion (132 comments)

### [1970-01-01](<https://news.ycombinator.com/item?id=50066844>)

> axel -n 20 https://example.org/bigfile.iso
>
> 直接就能用。

### [edflsafoiewq](<https://news.ycombinator.com/item?id=50064027>)

> 我会试试这个。
>
> 我在 Firefox 里恢复下载的方法是这样的：
>
> 1. 把 .part 文件移动到一个临时文件
>
> 2. 重新开始下载；此时会创建一个新的 .part 文件
>
> 3. 暂停下载
>
> 4. 把临时文件移回 .part 文件，覆盖它
>
> 5. 取消暂停下载；它会从旧 .part 文件停止的地方继续
>
> 只有当“一次性”下载链接在下载中途被中断（比如网络不稳定）时，才需要这样做。如果像往常一样尝试恢复这种一次性链接，我会收到（我推测是）400 错误响应，然后 Firefox 就会删除 .part 文件。

### [felixfurtak](<https://news.ycombinator.com/item?id=50064353>)

> 谁还记得 Getright？
>
> https://www.getright.com/

### [nirui](<https://news.ycombinator.com/item?id=50064867>)

> 根据 `network.http.response.timeout` 这个设置来看，它跟超时有关，我*猜测* Firefox 无法区分网络 EOF（文件结束）和逻辑/请求层面的 EOF？
>
> 不过话说回来，来自发达世界的软件居然容错性这么差，倒也见怪不怪了。写这段代码的工程师可能除了少数几个众所周知的情况外，从未被网络错误烦扰过，因此根本没把这些当回事。
>
> 举个例子，你试过在延迟抖动在 100ms 到 20 秒之间的连接上下载大文件吗？在中国跨境进出网络时就会遇到这种情况。而在印度，用户有时会遇到电力问题，导致路由器重启或重拨，这也会造成下载中断。
>
> 当然，这些国家的人付不起多少钱。但这些问题完全可以通过软件来解决或缓解。你是想改进软件，让它更健壮，还是想浪费用户的时间，让他们坐在你的软件前只是为了把事做完？

### [Retro_Dev](<https://news.ycombinator.com/item?id=50063888>)

> 我喜欢用 aria2[0] 这个下载工具——过去几年里，我通过浏览器下载的文件好像没超过十几兆的。这种方法让我能支持更多协议、多连接，当然还有断点续传。话虽如此，有人找到这个问题的解决方案还是很棒——这让所有不依赖外部下载工具的人的生活都变得更轻松了……你们是怎么发现这类 bug 的解决方案的？
>
> [0]: https://aria2.github.io/

---

## Cite

- Page: https://zeli.app/zh/story/50061791
- Date: 2026-10-12
- Source: lunarwatcher.codeberg.page (https://lunarwatcher.codeberg.page/til/firefox/resumable-big-downloads.html)
- Hacker News: https://news.ycombinator.com/item?id=50061791

## Other languages

- en: https://zeli.app/story/50061791 · markdown: https://zeli.app/story/50061791.md
- ja: https://zeli.app/ja/story/50061791 · markdown: https://zeli.app/ja/story/50061791.md
- ko: https://zeli.app/ko/story/50061791 · markdown: https://zeli.app/ko/story/50061791.md
- de: https://zeli.app/de/story/50061791 · markdown: https://zeli.app/de/story/50061791.md
- es: https://zeli.app/es/story/50061791 · markdown: https://zeli.app/es/story/50061791.md
- ru: https://zeli.app/ru/story/50061791 · markdown: https://zeli.app/ru/story/50061791.md
