AI tracker: owner-only tabs no longer 500 (cache-control set twice: layout + page load)
Deploy production / deploy (push) Successful in 1m14s
Deploy production / deploy (push) Successful in 1m14s
This commit is contained in:
1 parent
22279d181f
commit
7396d23335
3 files changed
+6
-3
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user