From 8c54df16ac42a1cd5fae186ef1171d1277b2a5cb Mon Sep 17 00:00:00 2001 From: Zaripov Emil Date: Thu, 26 Dec 2024 10:48:55 +0300 Subject: [PATCH] nginx.conf.template fix --- config/nginx.conf.template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/nginx.conf.template b/config/nginx.conf.template index fdcae5d..b35ddad 100644 --- a/config/nginx.conf.template +++ b/config/nginx.conf.template @@ -55,6 +55,20 @@ server { index index.html; expires -1; + # Media: images, icons, video, audio, HTC + location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|mp3|ogg|ogv|webm|htc|woff2|woff|ttf)$ { + expires 1M; + access_log off; + # max-age must be in seconds + add_header Cache-Control "max-age=2629746, public"; + } + # CSS and Javascript + location ~* \.(?:css|js)$ { + expires 1y; + access_log off; + add_header Cache-Control "max-age=31556952, public"; + } + ssi on; set $flUrl "${LKRP_FL_URL}"; set $flLandingUrl "${LKRP_FL_LANDING}";