Skip to content

Commit 5f5dd71

Browse files
committed
Add cache headers
1 parent fbc63f7 commit 5f5dd71

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

vercel.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"headers": [
3+
{
4+
"source": "/icons/(.*)",
5+
"headers": [
6+
{
7+
"key": "Cache-Control",
8+
"value": "public, maxage=604800, stale-while-revalidate=2592000"
9+
}
10+
]
11+
},
12+
{
13+
"source": "/(.*)",
14+
"headers": [
15+
{
16+
"key": "Cache-Control",
17+
"value": "public, s-maxage=60, stale-while-revalidate=86400"
18+
},
19+
{
20+
"key": "X-Content-Type-Options",
21+
"value": "nosniff"
22+
},
23+
{
24+
"key": "X-XSS-Protection",
25+
"value": "1; mode=block"
26+
},
27+
{
28+
"key": "Permissions-Policy",
29+
"value": "accelerometer=(),autoplay=(),camera=(),clipboard-read=(),clipboard-write=(self),fullscreen=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()"
30+
},
31+
{
32+
"key": "Referrer-Policy",
33+
"value": "no-referrer-when-downgrade"
34+
},
35+
{
36+
"key": "X-DNS-Prefetch-Control",
37+
"value": "on"
38+
}
39+
]
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)