We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb9f44 commit a136eccCopy full SHA for a136ecc
1 file changed
src/routes/awesome-privacy/+layout.server.ts
@@ -3,7 +3,11 @@ import type { LayoutServerLoad } from './$types';
3
import { awesomePrivacy } from '$lib/features/awesome-privacy/service';
4
import type { AwesomePrivacyData } from '$lib/features/awesome-privacy/types';
5
6
-export const load: LayoutServerLoad = () => {
+export const load: LayoutServerLoad = ({ setHeaders }) => {
7
+ setHeaders({
8
+ 'cache-control': 'public, max-age=3600'
9
+ });
10
+
11
const awesomePrivacyData = awesomePrivacy.getData();
12
13
return {
0 commit comments