Created
November 30, 2011 15:28
-
-
Save douglasmiranda/1409474 to your computer and use it in GitHub Desktop.
Diretivas .htaccess para cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 ANO | |
<FilesMatch "\.(ico|pdf|flv)$"> | |
Header set Cache-Control "max-age=29030400, public" | |
</FilesMatch> | |
# 1 SEMANA | |
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> | |
Header set Cache-Control "max-age=604800, public" | |
</FilesMatch> | |
# 2 DIAS | |
<FilesMatch "\.(xml|txt|css|js)$"> | |
Header set Cache-Control "max-age=172800, proxy-revalidate" | |
</FilesMatch> | |
# 1 MINUTO | |
<FilesMatch "\.(html|htm|php)$"> | |
Header set Cache-Control "max-age=60, private, proxy-revalidate" | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment