AI tracker: owner-only tabs no longer 500 (cache-control set twice: layout + page load)
Deploy production / deploy (push) Successful in 1m14s

This commit is contained in:
stan committed 2026-10-26 09:27:26 +00:00
1 parent 22279d181f
commit 7396d23335
3 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -4,8 +4,9 @@ import type { PageServerLoad } from './$types';
// Owner only: one row per Grok Bot agent, short summaries written by Daisy (no transcripts).
export const load: PageServerLoad = async (event) => {
// cache-control comes from the ai layout (owner) and hooks.server.ts; setting it here too threw
// header_already_set (500) for the owner.
requireOwner(event);
event.setHeaders({ 'cache-control': 'private, no-store' });
return {
bots: await loadBots(),
now: Date.now(),