From a6f0d20d10ed2a086f8c4be83b47afda6a5a483a Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Wed, 10 Mar 2021 17:17:48 +0100 Subject: [PATCH] feat(nginx): cache webp images Currently webp images generated by the update `gatsby-plugin-image` are not cached. This PR adds the files to the cache configuration --- nginx-boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx-boot.sh b/nginx-boot.sh index 9e568bd..9e3dbad 100755 --- a/nginx-boot.sh +++ b/nginx-boot.sh @@ -13,7 +13,7 @@ export GZIP_TYPES=${GZIP_TYPES:-application/javascript application/x-javascript export GZIP_LEVEL=${GZIP_LEVEL:-6} export CACHE_IGNORE=${CACHE_IGNORE:-html} -export CACHE_PUBLIC=${CACHE_PUBLIC:-ico|jpg|jpeg|png|gif|svg|js|jsx|css|less|swf|eot|ttf|otf|woff|woff2} +export CACHE_PUBLIC=${CACHE_PUBLIC:-ico|jpg|jpeg|png|gif|svg|webp|js|jsx|css|less|swf|eot|ttf|otf|woff|woff2} export CACHE_PUBLIC_EXPIRATION=${CACHE_PUBLIC_EXPIRATION:-1y} if [ "$TRAILING_SLASH" = false ]; then