From 732ecd18e841eec150aa1b76341a4b3abcdb4151 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 19 Jan 2022 06:10:18 -0500 Subject: [PATCH] chore(website): set cache-control for static assets (#6381) --- website/static/_headers | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/website/static/_headers b/website/static/_headers index 85349a1561..59b3f98c31 100644 --- a/website/static/_headers +++ b/website/static/_headers @@ -3,16 +3,26 @@ # They are safe for immutable caching, as filename change when content change /assets/* - cache-control: immutable + Cache-Control: public + Cache-Control: max-age=365000000 + Cache-Control: immutable /fr/assets/* - cache-control: immutable + Cache-Control: public + Cache-Control: max-age=365000000 + Cache-Control: immutable /pt-BR/assets/* - cache-control: immutable + Cache-Control: public + Cache-Control: max-age=365000000 + Cache-Control: immutable /ko/assets/* - cache-control: immutable + Cache-Control: public + Cache-Control: max-age=365000000 + Cache-Control: immutable /zh-CN/assets/* - cache-control: immutable + Cache-Control: public + Cache-Control: max-age=365000000 + Cache-Control: immutable