Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: cache and access control
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Jan 14, 2021
1 parent fa33c7e commit c5855b8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions site/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,48 @@
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "assets/icons/**/*",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
},
{
"source": "assets/img/shapes/*",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
},
{
"source": "assets/img/**/*",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
},
{
"source": "**/*.@(js|css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
}
]
}
}

0 comments on commit c5855b8

Please sign in to comment.