diff --git a/deploy/docker.nginx.template b/deploy/docker.nginx.template index 273084de9d3d9f6c5c3c402bbd96c7915f239e0c..fd99c07050f9b42ed5c8999be2bbdf8118121645 100644 --- a/deploy/docker.nginx.template +++ b/deploy/docker.nginx.template @@ -32,6 +32,9 @@ server { location /front/ { alias /frontend/; + expires 30d; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } location /federation/ { diff --git a/deploy/nginx.template b/deploy/nginx.template index 702dc05eeef7a4b48c0149e5a0eba9933ad8e066..8f5f674b899b074a82bb1e5f958bb03455b49fe5 100644 --- a/deploy/nginx.template +++ b/deploy/nginx.template @@ -87,6 +87,9 @@ server { location /front/ { alias ${FUNKWHALE_FRONTEND_PATH}/; + expires 30d; + add_header Pragma public; + add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } location /federation/ {