Skip to content

Commit 0a42d07

Browse files
authored
fix(gatsby-plugin-offline): Cache avif images (#29394)
1 parent f4db647 commit 0a42d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-plugin-offline/src/gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ exports.onPostBuild = (
146146
},
147147
{
148148
// Add runtime caching of various other page resources
149-
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
149+
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|avif|svg|gif|tiff|js|woff|woff2|json|css)$/,
150150
handler: `StaleWhileRevalidate`,
151151
},
152152
{

0 commit comments

Comments
 (0)