sos 50 ارسال شده در آبان 93 گزارش بازنشر ارسال شده در آبان 93 (ویرایش شده) یه مشکل عجیب برخوردم هرکاری میکنم سایت کش نمیشه و دوباره تمام تصاویر لود میشندوستان میتونن بگین مشکل از کجاست .1. توی هدر صفحات کد :<meta http-equiv="Cache-control" content="max-age=2592000, public">وجود داره2. در فایل .htaccess هم کدای زیر رو گذاشتم اونم از هر نوعش که گفتم شاید کار کنه .RewriteEngine onOptions -Indexes## EXPIRES CACHING ##<IfModule mod_expires.c>ExpiresActive OnExpiresByType image/jpg "access 1 year"ExpiresByType image/jpeg "access 1 year"ExpiresByType image/gif "access 1 year"ExpiresByType image/png "access 1 year"ExpiresByType text/css "access 1 month"ExpiresByType text/x-javascript "access 1 month"ExpiresDefault "access 1 month"</IfModule>## EXPIRES CACHING ##<IfModule mod_expires.c>AddType image/x-icon .icoExpiresActive onExpiresByType image/jpeg A2592000ExpiresByType image/gif A2592000ExpiresByType image/png A2592000ExpiresByType image/x-icon A2592000ExpiresByType application/x-javascript A2592000ExpiresByType text/css M604800ExpiresDefault M604800</IfModule><FilesMatch "\.(ico|pdf|jpg|png|gif|js|css)$">Header set Cache-Control "max-age=29030400, public, must-revalidate"Header set Last-Modified "Mon, 20 Nov 2014 00:00:00 GMT"</FilesMatch><FilesMatch "\.(css|js)$">Header set Cache-Control "max-age=29030400, public, must-revalidate"Header set Last-Modified "Mon, 20 Nov 2014 00:00:00 GMT"</FilesMatch>#### Cache-Control<IfModule mod_headers.c><FilesMatch "\\.(ico|jpe?g|png|gif|swf)$"> Header set Cache-Control "max-age=29030400, public, must-revalidate" Header set Last-Modified "Mon, 20 Nov 2014 00:00:00 GMT"</FilesMatch><FilesMatch "\\.(css|js)$"> Header set Cache-Control "max-age=2592000, public, must-revalidate" Header set Last-Modified "Mon, 20 Nov 2014 00:00:00 GMT"</FilesMatch></IfModule>هدف اینه که دیگه تصاویر در مرورگر کش بشن و دیگه به سرور درخواست ارسال نشه اما میشه و دوباره تصاویر لود میشن . و کلی زمان میگیره ویرایش شده آبان 93 توسط sos نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .