Merhaba arkadaşlar,
sitemde kullandığım yaklaşık 4 CSS 3 de JS dosyası var. Bunları tarayıcıyla ön belleğe almak istiyorum nasıl yapabilirim acaba?
Tarayıcı Ön Bellekleme İle Hızı Arttırma
4
●358
- 15-02-2016, 18:03:18htaccess ile yapılabilir belki ama detayları bilmiyorum. takipteyim
- 15-02-2016, 21:29:44.htaccess ile denedim başarılı olmadı hocamahmetcem96 adlı üyeden alıntı: mesajı görüntüle
- 15-02-2016, 22:09:58Aranan Kelime: htaccess browser cache
Kaynak: https://www.siteground.com/kb/leverage-browser-caching/
.htaccess dosyanıza eklemeniz gereken betik;
## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType 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 application/pdf "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" </IfModule> ## EXPIRES CACHING ##