Posted By

joaobarbosa on 10/31/10


Tagged

htaccess apache


Versions (?)

Alterar o tempo em que arquivos irão expirar


 / Published in: Apache
 

Adicionhar o código ao arquivo .htaccess do site

  1. # Turn on ExpiresActive for the directory
  2. ExpiresActive on
  3. # Set the defaults
  4. ExpiresDefault "access plus 1 week"
  5. ExpiresByType image/jpg "access plus 1 month"
  6. ExpiresByType image/jpeg "access plus 1 week"
  7. ExpiresByType image/gif "access plus 1 day"
  8. ExpiresByType image/png "access plus 1 week"
  9. ExpiresByType text/css "access plus 1 week"
  10. ExpiresByType text/javascript "access plus 1 week"

Report this snippet  

You need to login to post a comment.