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
Some checks failed
Deploy production / deploy (push) Has been cancelled
This commit is contained in:
@@ -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".
|
||||||
|
|||||||
Reference in New Issue
Block a user