mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
移除 vite.config.ts 中的缓存键处理逻辑以提高代码简洁性
This commit is contained in:
@@ -138,13 +138,6 @@ export default defineConfig({
|
|||||||
handler: 'StaleWhileRevalidate',
|
handler: 'StaleWhileRevalidate',
|
||||||
options: {
|
options: {
|
||||||
cacheName: 'pages-cache',
|
cacheName: 'pages-cache',
|
||||||
cacheKeyWillBeUsed: async ({ request }) => {
|
|
||||||
// 忽略状态参数,提高缓存命中率
|
|
||||||
const url = new URL(request.url)
|
|
||||||
url.searchParams.delete('restored')
|
|
||||||
url.searchParams.delete('t')
|
|
||||||
return url.toString()
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user