Forum - DatingScript
Online dating software
You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2018-12-04 09:42:03
- samirosanna
- Member
Leverage browser caching
Browser caching for .htaccess
The code below tells browsers what to cache and how long to "remember" it. It should be added to the top of your .htaccess file.
this helps a lot in seo
add this code in your hatcess
## 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/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/svg+xml "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##
Offline
#2 2018-12-05 07:49:28
- moomoocow
- Member
Re: Leverage browser caching
thank you
Offline
Pages: 1