Skip to content

Commit

Permalink
fix(gatsby-plugin-offline): Cache avif images (#29394) (#29429)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a42d07)
  • Loading branch information
ascorbic authored Feb 10, 2021
1 parent 1d95cfe commit 72c4a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-offline/src/gatsby-node.js
Original file line number Diff line number Diff line change
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 72c4a5a

Please sign in to comment.