Fix #44, additional minor enhncements

This commit is contained in:
2025-07-08 20:48:22 +02:00
parent 3186f375e1
commit 35572a48e7
14 changed files with 353 additions and 32 deletions

View File

@ -1,8 +1,11 @@
import type { Post } from '$lib/mastodon/response';
import type { PageLoad } from './$types';
export const load = (async ({ fetch }) => {
export const load = (async ({ fetch, setHeaders }) => {
const p = await fetch('/');
setHeaders({
'cache-control': 'public,max-age=60'
});
return {
posts: (await p.json()) as Post[]
};