diff options
| -rw-r--r-- | nginx.conf | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -50,24 +50,24 @@ http { } location ~* \.(css|js)$ { - expires 1y; - add_header Cache-Control "public, immutable, max-age=31536000" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; } location ~* \.(woff|woff2|ttf|otf|eot)$ { - expires 1y; - add_header Cache-Control "public, immutable, max-age=31536000" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; add_header Access-Control-Allow-Origin "*" always; } location ~* \.(jpg|jpeg|png|gif|svg|ico|webp)$ { - expires 30d; - add_header Cache-Control "public, max-age=2592000" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; } location / { - expires 1h; - add_header Cache-Control "public, max-age=3600" always; + expires 30m; + add_header Cache-Control "public, max-age=1800" always; try_files $uri $uri/ =404; } } |
