Skip to content

Commit 72c4a5a

Browse files
authored
fix(gatsby-plugin-offline): Cache avif images (#29394) (#29429)
(cherry picked from commit 0a42d07)
1 parent 1d95cfe commit 72c4a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)