ITADN

Remove deprecated reload forceGet attribute

#160Pull Requestshatterproof 创建于 2025-03-18已合并
S
shatterproofcommented
Using `location.reload(true)` causes Firefox to unnecessarily pull all page assets from the origin instead of cache, including images. This `forceGet` attribute is additionally deprecated where it is ignored by most browsers, except in the Firefox case. By using `location.reload()` instead, the page refresh behavior is made consistent across browsers to properly utilize cached assets while still maintaining package functionality. References: - https://developer.mozilla.org/en-US/docs/Web/API/Location/reload - https://blog.ni18.in/location-reload-is-deprecated/
合并状态:已合并 合并于 2025-03-18 关闭于 2025-03-18 0 条评论