summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx.conf16
1 files changed, 8 insertions, 8 deletions
diff --git a/nginx.conf b/nginx.conf
index 12fcf04..70946b7 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -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;
}
}