Skip to content

Commit aca3b8f

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

staticwebapp.config.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
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+
"cache-control": "public, max-age=604800, immutable"
12+
}
13+
]
814
}

0 commit comments

Comments
 (0)