I asked my developer to set the expiration date of the icon by adding the following line to the .htaccess file:
<IfModule mod_expires.c> ExpiresByType image/ico "access plus 1 years"
But he didn’t have an expiration date, he couldn’t understand until I loaded the icon in Firefox and noticed this part of the response headers
Content-Type: text/plain; charset=WINDOWS-1251
Then I was asked to add the following: (so that Apache sets the correct mime type for the icon)
<IfModule mod_mime.c> AddType image/ico .ico </IfModule>
But he did not do this trick, not sure why, can there be a conflict that cancels mod_mime.c? or for any other reason?
Please inform
thanks
Added: I have this to set the expiration date:
<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 years" ExpiresByType image/jpeg "access plus 1 years" ExpiresByType image/png "access plus 1 years" ExpiresByType image/x-icon "access plus 1 years" ExpiresByType text/css "access plus 1 years" ExpiresByType text/javascript "access plus 1 years" ExpiresByType application/x-javascript "access plus 1 years" ExpiresByType application/x-shockwave-flash "access plus 1 years" </IfModule>
source share