عرض مشاركة واحدة
احصائياتى

الردود
2

المشاهدات
1001
~ GOOGLE ~
.:: عضو مبدع ::.
  • ~ GOOGLE ~ is just really nice~ GOOGLE ~ is just really nice~ GOOGLE ~ is just really nice~ GOOGLE ~ is just really nice~ GOOGLE ~ is just really nice

  • ~ GOOGLE ~ غير متواجد حالياً

المشاركات
669

+التقييم
97

تاريخ التسجيل
Nov 2015

الاقامة
فلسطين

نظام التشغيل
windows 8.1

رقم العضوية
611
05-10-2019, 11:35 PM
المشاركة 1
05-10-2019, 11:35 PM
المشاركة 1
افتراضي أفضل كود التسريع المنتدى عن تجربه
طبعأ في بداية موضوعي كل عام وانتم بخير
وظيفة الكود يقوم بحفظ الصور وبعض ملفات المنتدى او الموقع بلأرشيف

طريقة تطبيق الكود سهل جدأ مقدم العيون اعضاء هيلبرنت

سجل دخولك الى الف تي بي
ثم قم بذهاب الى ملف htaccess وضع الكود فيها

الان ان لم يعمل الكود يكون هنالك اغلاق البعض المودات من قبل الأستضافة

وشكرأ

كود PHP:
# Turn on Expires and set default to 0  
ExpiresActive On  
ExpiresDefault A0  
 
# Set up caching on media files for 1 year (forever?)  
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">  
ExpiresDefault A29030400  
Header append Cache
-Control "public"  
</FilesMatch>  
 
# Set up caching on media files for 1 week  
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">  
ExpiresDefault A604800  
Header append Cache
-Control "public"  
</FilesMatch>  
 
# Set up 2 Hour caching on commonly updated files  
<FilesMatch "\.(xml|txt|html|js|css)$">  
ExpiresDefault A7200  
Header append Cache
-Control "proxy-revalidate"  
</FilesMatch>  
 
# Force no caching for dynamic files  
<FilesMatch "\.(php|cgi|pl|htm)$">  
ExpiresActive Off  
Header set Cache
-Control "private, no-cache, no-store, proxy-revalidate, no-transform"  
Header set Pragma "no-cache"  
</FilesMatch