diff --git a/hagrid-routes.conf b/hagrid-routes.conf index ef683de..9464b59 100644 --- a/hagrid-routes.conf +++ b/hagrid-routes.conf @@ -30,6 +30,8 @@ location /vks/v1/request-verify { } location /vks/v1/ { + etag off; + location ~ ^/vks/v1/by-fingerprint/(?:0x)?([^/][^/])([^/][^/])(..*)$ { limit_req zone=search_fpr_keyid burst=30; @@ -37,6 +39,7 @@ location /vks/v1/ { default_type application/pgp-keys; add_header Content-Disposition 'attachment; filename="$1$2$3.asc"'; add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Cache-Control' 'no-cache'; try_files /keys/links/by-fpr/$1/$2/$3 =404; } @@ -48,6 +51,7 @@ location /vks/v1/ { default_type application/pgp-keys; add_header Content-Disposition 'attachment; filename="$1$2$3.asc"'; add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Cache-Control' 'no-cache'; try_files /keys/links/by-keyid/$1/$2/$3 =404; } @@ -57,6 +61,7 @@ location /vks/v1/ { set $args ""; add_header 'Access-Control-Allow-Origin' '*'; + add_header 'Cache-Control' 'no-cache'; proxy_pass http://127.0.0.1:8080; # we have some trouble with uri encoding here. just route through