Skip to content

Commit

Permalink
fix(gatsby-plugin-offline): Cache avif images (#29394)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Feb 8, 2021
1 parent f4db647 commit 0a42d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-offline/src/gatsby-node.js
Expand Up @@ -146,7 +146,7 @@ exports.onPostBuild = (
},
{
// Add runtime caching of various other page resources
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|svg|gif|tiff|js|woff|woff2|json|css)$/,
urlPattern: /^https?:.*\.(png|jpg|jpeg|webp|avif|svg|gif|tiff|js|woff|woff2|json|css)$/,
handler: `StaleWhileRevalidate`,
},
{
Expand Down

0 comments on commit 0a42d07

Please sign in to comment.