Skip to content

Commit a82425e

Browse files
feat: cache-control header
1 parent 67e3dc3 commit a82425e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

staticwebapp.config.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@
44
"exclude": [
55
"*.{jpg,gif,png,ico,svg,css,scss,js}"
66
]
7-
}
7+
},
8+
"routes": [
9+
{
10+
"route": "/*.{jpg,gif,png,ico,svg,css,scss,js,webp,webmanifest}",
11+
"headers": {
12+
"cache-control": "public, max-age=31536000, immutable"
13+
}
14+
}
15+
]
816
}

0 commit comments

Comments
 (0)