Skip to content

Commit a136ecc

Browse files
authored
add cache controll to awesome privacy pages (#21)
1 parent 4fb9f44 commit a136ecc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/routes/awesome-privacy/+layout.server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import type { LayoutServerLoad } from './$types';
33
import { awesomePrivacy } from '$lib/features/awesome-privacy/service';
44
import type { AwesomePrivacyData } from '$lib/features/awesome-privacy/types';
55

6-
export const load: LayoutServerLoad = () => {
6+
export const load: LayoutServerLoad = ({ setHeaders }) => {
7+
setHeaders({
8+
'cache-control': 'public, max-age=3600'
9+
});
10+
711
const awesomePrivacyData = awesomePrivacy.getData();
812

913
return {

0 commit comments

Comments
 (0)