# 操作有时会随机重新加载整个页面，而不是只重新加载一部分

**URL:** <https://meta.discourse.org/t/actions-sometimes-randomly-reload-the-whole-page-instead-of-reloading-only-part-of-it/244097>\
**Category:** Site feedback\
**Created:** [2022年十一月3日 01:23 UTC](https://meta.discourse.org/t/actions-sometimes-randomly-reload-the-whole-page-instead-of-reloading-only-part-of-it/244097 "2022-11-03T01:23:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [2022年十一月3日 01:23 UTC](https://meta.discourse.org/t/actions-sometimes-randomly-reload-the-whole-page-instead-of-reloading-only-part-of-it/244097/1 "2022-11-03T01:23:46Z")

</div>

我几天前就开始遇到这个问题……或者几周前？

有时，当我执行常规操作（打开一个主题、转到最后一篇帖子、回复帖子等）时，页面会在 URL 更改时完全重新加载，而通常情况下不会。

这非常随机，我不知道这是否与 Discourse 或我的浏览器（或其某个插件）有关……而且由于它如此随机，我有点懒得换用另一个浏览器一段时间来观察它是否还会发生。

不过，我有一个例子。在这里，我回复了一个帖子，在发布回复后页面完全重新加载，URL 更改以添加我的帖子编号：

[https://cdn.discordapp.com/attachments/722072871693844481/1037537346364637224/Discourse\_reload.mp4](https://cdn.discordapp.com/attachments/722072871693844481/1037537346364637224/Discourse_reload.mp4)

有人也遇到过这种情况吗？

---

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [2022年十一月3日 09:58 UTC](https://meta.discourse.org/t/actions-sometimes-randomly-reload-the-whole-page-instead-of-reloading-only-part-of-it/244097/2 "2022-11-03T09:58:12Z")

</div>

是的，我也遇到了这个问题。我认为当网站刚刚从管理员那里更新并重新加载到新版本时，就会发生这种情况？

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2022年十一月3日 11:06 UTC](https://meta.discourse.org/t/actions-sometimes-randomly-reload-the-whole-page-instead-of-reloading-only-part-of-it/244097/3 "2022-11-03T11:06:11Z")

</div>

是的，正是如此——当 Discourse 更新时就会发生这种情况。我们不会立即刷新所有浏览器，而是在您下次“导航页面”时刷新，以最大程度地减少干扰。

这种情况在 Meta 上发生得更频繁，因为我们会自动对每次成功通过的测试提交进行更新。

---

<div class="post-metadata">

**Author:** ![khenmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/khenmu/32/108976_2.png) [@khenmu](https://meta.discourse.org/u/khenmu)\
**Post date:** [2022年十一月3日 13:07 UTC](https://meta.discourse.org/t/actions-sometimes-randomly-reload-the-whole-page-instead-of-reloading-only-part-of-it/244097/4 "2022-11-03T13:07:34Z")

</div>

> [@david](#):
>
> It happens much more frequently here on Meta because we automatically run an update for every single commit to tests-passed.

TIL！

谢谢，这回答了我自己的一些问题。 🙂
