Created
January 27, 2015 14:05
-
-
Save roberto-butti/24209536f84df252fb31 to your computer and use it in GitHub Desktop.
Porzione htaccess per impostazione header su assets statici
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
Header unset Pragma | |
FileETag None | |
Header unset ETag | |
<FilesMatch "\.(ico|pdf|jpg|jpeg|png|gif|css|js|mp3)$"> | |
Header set Cache-Control "public, s-maxage=600" | |
Header unset Last-Modified | |
#Header unset Cookie | |
#Header unset Set-Cookie | |
</FilesMatch> | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript | |
</ifmodule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment