fix: 为RSS请求添加缓存禁用选项以获取最新内容

在fetch请求中设置cache: 'no-store',防止浏览器缓存导致无法及时获取最新的RSS内容,确保新文章通知能正确显示。
This commit is contained in:
二叉树树
2026-01-25 21:37:05 +08:00
parent 7f45a2a2c1
commit a08c717ed8
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@
// Helper to get current RSS items
async function fetchRSS() {
try {
const response = await fetch('/rss.xml');
const response = await fetch('/rss.xml', { cache: 'no-store' });
const text = await response.text();
const parser = new DOMParser();
const xml = parser.parseFromString(text, 'text/xml');

View File

@@ -3,7 +3,7 @@ title: 加群向导
image: /random/h
published: 2025-05-24
pinned: true
description: 关于如何联系二叉树树~
description: 关于如何联系二叉树树~ 开始技术切磋!
---