title: Favicon Content-Type: text/plain - "AddType image/ico .ico" doesn't work
body: <p>I asked my developer to to set an expire date for the favicon by adding to the .htaccess file the following line:</p>
  
  <pre><code>&lt;IfModule mod_expires.c&gt;
  ExpiresByType image/ico "access plus 1 years"
  </code></pre>
  
  <p>But it didn't have an expire date, couldn't figure it out till I loaded the icon in Firefox and noticed this part of the response headers</p>
  
  <pre><code>Content-Type: text/plain; charset=WINDOWS-1251
  </code></pre>
  
  <p>I was then advised to add the following: (to get Apache to set the correct mime type for the favicon)</p>
  
  <pre><code>&lt;IfModule mod_mime.c&gt;
  AddType image/ico .ico
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But it didn't do the trick, not sure why, can there be any conflict that overrides the mod_mime.c? or any other reason? </p>
  
  <p>Please advise </p>
  
  <p>Thanks </p>
  
  <p>Added: I currently have this to set expire date:</p>
  
  <pre><code>&lt;IfModule mod_expires.c&gt;
  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"
  &lt;/IfModule&gt;
  </code></pre>