[GH-ISSUE #637] index.html change not affects #383

Closed
opened 2026-04-08 16:52:30 +03:00 by zhus · 1 comment
Owner

Originally created by @yuf19-2022 on GitHub (Oct 15, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/637

Problem

when i change assets/index.html,i have to restart the dufs to make the change affets,but the index.js file does not need,

Configuration

Log

Screenshots/Media

Environment Information

  • Dufs version:
  • Browser/Webdav info:
  • OS info:
  • Proxy server (if any):
Originally created by @yuf19-2022 on GitHub (Oct 15, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/637 **Problem** when i change assets/index.html,i have to restart the dufs to make the change affets,but the index.js file does not need, **Configuration** <!-- Please specify the Dufs command-line arguments or configuration used. --> <!-- If the issue is related to authentication/permissions, include auth configurations while concealing sensitive information (e.g., passwords). --> **Log** <!-- Attach relevant log outputs that can help diagnose the issue. --> **Screenshots/Media** <!-- If applicable, add screenshots or videos that help illustrate the issue, especially for WebUI problems. --> **Environment Information** - Dufs version: - Browser/Webdav info: - OS info: - Proxy server (if any): <!-- e.g. nginx, cloudflare -->
zhus closed this issue 2026-04-08 16:52:30 +03:00
Author
Owner

@sigoden commented on GitHub (Oct 27, 2025):

Because index.js has cache control.

cache-control: public, max-age=31536000, immutable

你可以修改index.html以强制刷新缓存

-  <script src="__ASSETS_PREFIX__index.js"></script>
+  <script src="__ASSETS_PREFIX__index.js?v=2"></script>
<!-- gh-comment-id:3449015584 --> @sigoden commented on GitHub (Oct 27, 2025): Because index.js has cache control. ``` cache-control: public, max-age=31536000, immutable ``` 你可以修改index.html以强制刷新缓存 ```diff - <script src="__ASSETS_PREFIX__index.js"></script> + <script src="__ASSETS_PREFIX__index.js?v=2"></script> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#383