diff --git a/Dockerfile b/Dockerfile index 581f198..e7e8683 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,13 @@ RUN echo 'server { \ location / { \ try_files $uri $uri/ /index.html; \ } \ - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|webp|avif)$ { \ + location /articles/ { \ + try_files $uri $uri/ =404; \ + } \ + location /sections/ { \ + try_files $uri $uri/ =404; \ + } \ + location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|webp|avif)$ { \ expires 1y; \ add_header Cache-Control "public, immutable"; \ } \