تصاویر بدون کش طولانی — نمایش فوری تغییرات

This commit is contained in:
Behrad
2026-09-02 19:03:36 +03:30
parent 8dab39ee83
commit 87f38f1c0b
+6
View File
@@ -19,6 +19,12 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; 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?)$ { location ~* \.(js|css|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ {
expires 30d; expires 30d;