Alterar o tempo em que arquivos irão expirar

/ Published in: Apache
Save to your folder(s)

Adicionhar o código ao arquivo .htaccess do site

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.