From c323e67aa066956fbce2a256555f98017994e15b Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Thu, 21 May 2020 16:13:18 +0200 Subject: [PATCH] nginx: add cache-control in snippets (#43187) --- nginx/snippets/publik-application.conf.j2 | 1 + nginx/snippets/publik-authentic2-multitenant.conf | 1 + nginx/snippets/publik-bijoe.conf | 1 + nginx/snippets/publik-chrono.conf | 1 + nginx/snippets/publik-combo.conf | 1 + nginx/snippets/publik-corbo.conf | 1 + nginx/snippets/publik-fargo.conf | 1 + nginx/snippets/publik-hobo.conf | 1 + nginx/snippets/publik-mandayejs.conf | 1 + nginx/snippets/publik-passerelle.conf | 1 + nginx/snippets/publik-wcs.conf | 1 + nginx/snippets/publik-welco.conf | 1 + 12 files changed, 12 insertions(+) diff --git a/nginx/snippets/publik-application.conf.j2 b/nginx/snippets/publik-application.conf.j2 index 9abbf98..67bb560 100644 --- a/nginx/snippets/publik-application.conf.j2 +++ b/nginx/snippets/publik-application.conf.j2 @@ -49,4 +49,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } diff --git a/nginx/snippets/publik-authentic2-multitenant.conf b/nginx/snippets/publik-authentic2-multitenant.conf index 14bb0b9..5ff0967 100644 --- a/nginx/snippets/publik-authentic2-multitenant.conf +++ b/nginx/snippets/publik-authentic2-multitenant.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-bijoe.conf b/nginx/snippets/publik-bijoe.conf index dc391bd..5c78dbe 100644 --- a/nginx/snippets/publik-bijoe.conf +++ b/nginx/snippets/publik-bijoe.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-chrono.conf b/nginx/snippets/publik-chrono.conf index 3707737..cd0cecc 100644 --- a/nginx/snippets/publik-chrono.conf +++ b/nginx/snippets/publik-chrono.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-combo.conf b/nginx/snippets/publik-combo.conf index ac6615a..b7218f3 100644 --- a/nginx/snippets/publik-combo.conf +++ b/nginx/snippets/publik-combo.conf @@ -36,4 +36,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-corbo.conf b/nginx/snippets/publik-corbo.conf index 3a7d2b2..abd6704 100644 --- a/nginx/snippets/publik-corbo.conf +++ b/nginx/snippets/publik-corbo.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-fargo.conf b/nginx/snippets/publik-fargo.conf index 0d12765..c4e759b 100644 --- a/nginx/snippets/publik-fargo.conf +++ b/nginx/snippets/publik-fargo.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-hobo.conf b/nginx/snippets/publik-hobo.conf index 6763f9d..aae2e80 100644 --- a/nginx/snippets/publik-hobo.conf +++ b/nginx/snippets/publik-hobo.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-mandayejs.conf b/nginx/snippets/publik-mandayejs.conf index 258b122..8d44798 100644 --- a/nginx/snippets/publik-mandayejs.conf +++ b/nginx/snippets/publik-mandayejs.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-passerelle.conf b/nginx/snippets/publik-passerelle.conf index f65fd22..d1113f5 100644 --- a/nginx/snippets/publik-passerelle.conf +++ b/nginx/snippets/publik-passerelle.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file diff --git a/nginx/snippets/publik-wcs.conf b/nginx/snippets/publik-wcs.conf index 8e2c6fe..8a12027 100644 --- a/nginx/snippets/publik-wcs.conf +++ b/nginx/snippets/publik-wcs.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } diff --git a/nginx/snippets/publik-welco.conf b/nginx/snippets/publik-welco.conf index b6d77ba..ce1dd29 100644 --- a/nginx/snippets/publik-welco.conf +++ b/nginx/snippets/publik-welco.conf @@ -33,4 +33,5 @@ location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-XSS-Protection' '1; mode=block'; + add_header 'Cache-Control' 'private'; } \ No newline at end of file