تصاویر بدون کش طولانی — نمایش فوری تغییرات
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user