From 30bc867c7d956b9cfd3d72238fedef25a6ccbb99 Mon Sep 17 00:00:00 2001 From: Sergey Tyapkin Date: Mon, 16 Dec 2024 05:23:02 +0300 Subject: [PATCH] Change caching extensions --- .../nginx/templates/locations/https/frontend.conf.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-deploy/nginx/templates/locations/https/frontend.conf.template b/docker-deploy/nginx/templates/locations/https/frontend.conf.template index 7fe1477..d64f797 100644 --- a/docker-deploy/nginx/templates/locations/https/frontend.conf.template +++ b/docker-deploy/nginx/templates/locations/https/frontend.conf.template @@ -8,12 +8,12 @@ location / { # try files for SPA try_files $uri $uri/ $uri.html /index.html; } -location ~* \.(?:css|js)$ { # 1h storing on client for CSS+JS +location ~* \.(?:css|js|html)$ { # 1h storing on client for CSS+JS+HTML expires 1h; add_header Cache-Control "public"; } -location ~* \.(?:json|png|jpg|jpeg|gif|svg|ico|ttf|otf)$ { # 7d storing on client for static images+fonts +location ~* \.(?:png|jpg|jpeg|gif|svg|ico|ttf|otf)$ { # 7d storing on client for static images+fonts expires 7d; add_header Cache-Control "public"; }