ÅäÌä ÅßÓ Nginx ÇáÛÇÁ ÇáßÇÔ áãáÝÇÊ ãÍÏÏÉ Disable Caching in the .htaccess
How to Disable Caching in the .htaccess File - htaccess exclude NGINX cache
Ignore or Exclude specific files or complete folder in NGINX - Nginx, turn off cache for a specific file
cpanel how to Ignore folder in NGINX - Ignore folder in NGINX - exclude file in NGINX
Exclude directory from nginx cache - How To Disable NGINX Cache
How to turn off caching using .htaccess - NGINX, Disable cache in specific folder for a specific file type
- Disable caching when serving static files with Nginx - Exclude a page from server caching
ÇáãÔßáÉ :
ÅäÌä ÅßÓ Nginx íÞæã ÈÚãá ÇäÔÇÁ áÌãíÚ ÇáãáÝÇÊ æáßä åäÇß ÈÚÖ ÇáãáÝÇÊ ÇáÊì ÊÑíÏ
Çä íÊã Úãá ÇÓÊËäÇÁ áåÇ ÍÊì ÊÚãá ÈÔßá ÕÍíÍ ãËáÇ: ãáÝÇÊ ÊÞÏã Þíã ãÊÛíÑÉ ÈÇÓÊãÑÇÑ
åÊÊæÞÝ ÇÐÇ ßÇä ÇáßÇÔ íÚãá æíÚØì äÊÇÆÌ ÛíÑ ãÍÏËÉ.
Íá ÇáãÔßáÉ :
æÖÚ ãáÝ htaccess Ýì ÇáãÌáÏ ÇáãØáæÈ æÞÝ ÇáßÇÔ Èå
ÈÏÇÎá htaccess ßæÏ íãäÚ ÇáßÇÔ.
ÇÓÊÎÏã ßæÏ ÇáÛÇÁ ÇáßÇÔ ßÇãáÇ
æÊã ÇÑÝÇÞå Ýì ÇáãÑÝÞÇÊ ÌÇåÒ
# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
Çæ ÇÓÊÎÏã ßæÏ ÇáÛÇÁ ÇáßÇÔ áÕíÛ ãÍÏÏå
<FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$">
<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>
<IfModule mod_headers.c>
FileETag None
Header unset ETag
Header unset Pragma
Header unset Cache-Control
Header unset Last-Modified
Header set Pragma "no-cache"
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
</IfModule>
</FilesMatch>
ÔÇåÏ ÇíÖÇ
ÓßÑíÈÊ Whmcs Íá ãÔßáÉ ÊæÞÝ server status ÚäÏ Þíã ãÚíäÉ ßá ÝÊÑÉ
ÇáãÑÌÚ:
https://www.a2hosting.com/kb/develop...using-htaccess
https://www.inmotionhosting.com/supp...sable-caching/
https://trinitytuts.com/tips/ignore-...-folder-nginx/