Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Created January 27, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberto-butti/24209536f84df252fb31 to your computer and use it in GitHub Desktop.
Save roberto-butti/24209536f84df252fb31 to your computer and use it in GitHub Desktop.
Porzione htaccess per impostazione header su assets statici
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