Skip to content

Commit fe7dbf8

Browse files
authored
Extend local caching to more file types (dart-lang#5026)
This expands local caching to also cache `webp` images, `webm` videos (used in home page), `svg` images, as well as `css` and `js` files. We append cache busts to our styles on build as well as some scripts as necessary.
1 parent 98c3855 commit fe7dbf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"trailingSlash": false,
66
"headers": [
77
{
8-
"source": "**/*.@(jpg|jpeg|gif|png|md|txt|json)",
8+
"source": "**/*.@(jpg|jpeg|gif|png|md|txt|json|webp|webm|svg|css|js)",
99
"headers": [
1010
{ "key": "Cache-Control", "value": "max-age=3600" },
1111
{ "key": "Access-Control-Allow-Origin", "value": "*" }

0 commit comments

Comments
 (0)