[varnish] Add HSTS header to every response
This commit is contained in:
parent
4a6dcafaad
commit
8f8cb132fb
1 changed files with 4 additions and 1 deletions
|
@ -30,8 +30,11 @@ sub vcl_backend_response {
|
|||
if (beresp.ttl < 1m) {
|
||||
set beresp.ttl = 1m;
|
||||
}
|
||||
}
|
||||
|
||||
# Add an HSTS header to our response
|
||||
sub vcl_deliver {
|
||||
# Add an HSTS header to everything
|
||||
set resp.http.Strict-Transport-Security = "max-age=31536000;includeSubdomains;preload";
|
||||
}
|
||||
|
||||
sub vcl_synth {
|
||||
|
|
Loading…
Reference in a new issue