From 5813e40e6b76a6fce749f17ecc866c42e95a0d71 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 16 Jan 2020 14:55:15 +0100 Subject: [PATCH 1/2] chore: add cache control header to other_header variable --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 11cf74d..8eaea61 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3034,7 +3034,7 @@ run_cookie_flags() { # ARG1: Path run_security_headers() { local good_header="X-Frame-Options X-XSS-Protection X-Content-Type-Options Content-Security-Policy X-Content-Security-Policy X-WebKit-CSP Content-Security-Policy-Report-Only Expect-CT" - local other_header="Access-Control-Allow-Origin Upgrade X-Served-By Referrer-Policy X-UA-Compatible" + local other_header="Access-Control-Allow-Origin Upgrade X-Served-By Referrer-Policy X-UA-Compatible Cache-Control" local header header_output local first=true local spaces=" " From e498ffbdb2f95bff523b2488753b9ff13fab28e3 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 16 Jan 2020 15:01:48 +0100 Subject: [PATCH 2/2] add Pragma header to other_header_variable --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 8eaea61..4925704 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3034,7 +3034,7 @@ run_cookie_flags() { # ARG1: Path run_security_headers() { local good_header="X-Frame-Options X-XSS-Protection X-Content-Type-Options Content-Security-Policy X-Content-Security-Policy X-WebKit-CSP Content-Security-Policy-Report-Only Expect-CT" - local other_header="Access-Control-Allow-Origin Upgrade X-Served-By Referrer-Policy X-UA-Compatible Cache-Control" + local other_header="Access-Control-Allow-Origin Upgrade X-Served-By Referrer-Policy X-UA-Compatible Cache-Control Pragma" local header header_output local first=true local spaces=" "