Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit a1f6661

Browse files
authored
Add cache expiration header for js, html, and css (#464)
1 parent 120a2a1 commit a1f6661

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

firebase.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"hosting": {
33
"public": "dist",
44
"cleanUrls": true,
5+
"headers": [{
6+
"source": "**/*.@(js|html|css)",
7+
"headers": [{
8+
"key": "Cache-Control",
9+
"value": "max-age=604800"
10+
}]
11+
}],
512
"rewrites": [
613
{
714
"source": "/**/!(*.@(js|ts|html|css|json|svg|png|jpg|jpeg))",

0 commit comments

Comments
 (0)