overwrite minio cache-control
This commit is contained in:
parent
89ad40bb88
commit
0948358703
1 changed files with 3 additions and 1 deletions
|
|
@ -53,8 +53,10 @@ server {
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
error_page 404 {{ .errorPage }};
|
error_page 404 {{ .errorPage }};
|
||||||
|
|
||||||
|
proxy_hide_header Cache-Control;
|
||||||
add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always;
|
add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue