From 87f38f1c0bd6593446c03b584fbbb371b7f32891 Mon Sep 17 00:00:00 2001 From: Behrad Date: Wed, 2 Sep 2026 19:03:36 +0330 Subject: [PATCH] =?UTF-8?q?=D8=AA=D8=B5=D8=A7=D9=88=DB=8C=D8=B1=20=D8=A8?= =?UTF-8?q?=D8=AF=D9=88=D9=86=20=DA=A9=D8=B4=20=D8=B7=D9=88=D9=84=D8=A7?= =?UTF-8?q?=D9=86=DB=8C=20=E2=80=94=20=D9=86=D9=85=D8=A7=DB=8C=D8=B4=20?= =?UTF-8?q?=D9=81=D9=88=D8=B1=DB=8C=20=D8=AA=D8=BA=DB=8C=DB=8C=D8=B1=D8=A7?= =?UTF-8?q?=D8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 0541ed3..c0c9879 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -19,6 +19,12 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # تصاویر: بدون کش طولانی — تا تغییرات سریع دیده شوند + location ~* ^/images/ { + add_header Cache-Control "no-cache"; + try_files $uri =404; + } + # کش استاتیک location ~* \.(js|css|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ { expires 30d;