
نوشته اصلی توسط
shivahost
مشکل منو ها در فایرفاکس از تغییر css توسط افزونه کش بود! متاسفانه به همین خاطر مجبور شدم total cache رو غیر فعال کنم!
از این کدها در htaccess به عنوان جایگزین استفاده کنید
کد:
# Turn off ETags
FileETag None
Header unset ETag
# Set Expires headers
ExpiresActive On
ExpiresDefault "access plus 1 year"
ExpiresByType text/html "access plus 1 second"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
# Remove Last-Modified header
Header unset Last-Modified
کد:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</IfModule>
کد:
<IfModule mod_headers.c>
<FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">
Header set Last-Modified "Tue, 31 Aug 2010 00:00:00 GMT"
</FilesMatch>
</IfModule>
کد:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
کد:
<ifModule mod_headers.c>
Header set Connection keep-alive
</ifModule>
کد:
# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
# 2 HOURS
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
تک تک به ترتیب اضافه کنید و نتیجه رو در جی تی متریکس چک کنید
هر کدوم نتیجه عکس داد حذف کنید
مربوط به کش و جی زیپ و بهینه ساز کارکتر ست و دیفلیت هستن
قالب شمارو همون روز که پست زدید و الان چک کردم
مشکل لود نداشت و الانم نداره .