feat: 为管理后台布局添加禁用缓存响应头
continuous-integration/drone/push Build is passing

This commit is contained in:
seahi committed 2026-09-25 09:31:10 +08:00
1 parent d894a486ca
commit 2eb55e2efd
1 file changed
+5 -1
+5 -1
View File
@@ -2,7 +2,11 @@
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ locals, platform }) => {
export const load: LayoutServerLoad = async ({ locals, platform, setHeaders }) => {
setHeaders({
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate'
});
const db = platform?.env?.DB;
const aliases = {