diff --git a/docker/nginx/default.conf b/docker/nginx/default.conf index 8565aec..e7e36bd 100644 --- a/docker/nginx/default.conf +++ b/docker/nginx/default.conf @@ -26,6 +26,13 @@ server { } # Static Assets Caching + location ^~ /storage/ { + alias /var/www/storage/app/public/; + expires 30d; + access_log off; + add_header Cache-Control "public, no-transform"; + } + location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv|svgz?|ttf|ttc|otf|eot|woff2?)$ { expires 1y; access_log off;