houses: set cache-control once (layout already does; the page load threw header_already_set for the owner)
Some checks failed
Deploy production / deploy (push) Has been cancelled

This commit is contained in:
2026-10-24 15:03:36 +00:00
parent b5748e5ae5
commit 8c9a08afa1

View File

@@ -42,7 +42,7 @@ const int = (value: string | null) => {
export const load: PageServerLoad = async (event) => { export const load: PageServerLoad = async (event) => {
requireOwner(event); requireOwner(event);
event.setHeaders({ 'cache-control': 'private, no-store' }); // cache-control is set by +layout.server.ts; setting it twice throws.
const params = event.url.searchParams; const params = event.url.searchParams;
// Defaults apply only when a filter is absent from the URL; submitting the form with a // Defaults apply only when a filter is absent from the URL; submitting the form with a
// field left empty means "no limit". // field left empty means "no limit".