Posted By

CharlyBr on 03/25/08


Tagged

header apache expires


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
electblake


Add expires header with Apache


 / Published in: Apache
 

ExpiresActive tells the apache2 to use the expires module.

ExpiresDefault specifies the expire date for all mime-types in this directory.

ExpiresByType specifies the expires date for the specified mime-type in this directory.

  1. <IfModule mod_expires.c>
  2. ExpiresActive on
  3. ExpiresByType image/gif “access plus 2 years”
  4. ExpiresDefault ”access plus 1 days”
  5. </IfModule>

Report this snippet  

You need to login to post a comment.