Skip to content

Commit

Permalink
Do not cache index.html or habitat.conf.js
Browse files Browse the repository at this point in the history
This will keep index.html and habitat.conf.js from being cached.

Signed-off-by: Adam Jacob <[email protected]>
  • Loading branch information
adamhjk committed Jun 27, 2016
1 parent bc6a9fc commit 85fd96f
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions plans/nginx-builder-api/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,30 @@ http {
break;
}

location ~* ^/v1/depot/.*/latest$ {
add_header Cache-Control "private, no-cache, no-store";
proxy_pass http://localhost:9636;
}
location /index.html {
add_header Cache-Control "private, no-cache, no-store";
break;
}

location /habitat.conf.js {
add_header Cache-Control "private, no-cache, no-store";
break;
}

location /v1/depot {
location ~* ^/v1/depot/.*/latest$ {
add_header Cache-Control "private, no-cache, no-store";
proxy_pass http://localhost:9636;
}

location /v1/depot {
client_max_body_size 1024m;
proxy_cache my_cache;
proxy_pass http://localhost:9636;
}
proxy_cache my_cache;
proxy_pass http://localhost:9636;
}

location /v1 {
add_header Cache-Control "private, no-cache, no-store";
proxy_pass http://localhost:9636;
location /v1 {
add_header Cache-Control "private, no-cache, no-store";
proxy_pass http://localhost:9636;
}
}
}

0 comments on commit 85fd96f

Please sign in to comment.