Skip to content

Instantly share code, notes, and snippets.

View btorch's full-sized avatar

Marcelo Martins btorch

  • Fortaleza
View GitHub Profile
@adamlaki
adamlaki / .htaccess
Created October 14, 2017 17:59
With the use of the expire module, you can set your assets browser cache time thus on the second download you can disable download of files like your site's favicon.
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 week"
# CSS
ExpiresByType text/css "access plus 2 week"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"