mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 00:53:19 +08:00
fix: 为RSS请求添加缓存禁用选项以获取最新内容
在fetch请求中设置cache: 'no-store',防止浏览器缓存导致无法及时获取最新的RSS内容,确保新文章通知能正确显示。
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -3,7 +3,7 @@ title: 加群向导
|
||||
image: /random/h
|
||||
published: 2025-05-24
|
||||
pinned: true
|
||||
description: 关于如何联系二叉树树~
|
||||
description: 关于如何联系二叉树树~ 开始技术切磋!
|
||||
---
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user