Skip to content

Commit

Permalink
Add gzip vary
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Oct 12, 2016
1 parent 04d5264 commit 40c0e7b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions files/etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,41 +63,46 @@ server {
location /humans.txt {
root /srv/nginx/svenv/;

expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
gzip_vary on;
expires 30d;
}

location /robots.txt {
root /srv/nginx/svenv/;

expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
gzip_vary on;
expires 30d;
}

location /media {
root /srv/nginx/svenv/;

expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
gzip_vary on;
expires 30d;
}

location /static {
root /srv/nginx/svenv/;

expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
gzip_vary on;
expires 30d;
}

location /node_modules {
root /srv/nginx/;

expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
gzip_vary on;
expires 30d;
}

location / {
Expand Down

0 comments on commit 40c0e7b

Please sign in to comment.