Permalink
Browse files

cache-control

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 1981cb7 commit 8a4b3de2a564ac08ed5a535241e3d90f99e4df50
Showing with 16 additions and 4 deletions.
  1. +16 −4 nginx.conf
View
@@ -81,10 +81,22 @@ http {
root /home/isucon/isubata/webapp/public;
location /favicon.ico { }
location /fonts/ { }
location /js/ { }
location /css/ { }
location /favicon.ico {
add_header Cache-Control "public, max-age=86400";
}
location /fonts/ {
add_header Cache-Control "public, max-age=86400";
}
location /js/ {
add_header Cache-Control "public, max-age=86400";
}
location /css/ {
add_header Cache-Control "public, max-age=86400";
}
location /icons {
add_header Cache-Control "public, max-age=86400";
proxy_pass http://app;
}
location / {
proxy_pass http://app;

0 comments on commit 8a4b3de

Please sign in to comment.