Skip to content

Instantly share code, notes, and snippets.

@peacefulseeker
Created July 12, 2017 15:11
Show Gist options
  • Select an option

  • Save peacefulseeker/f0f4e36b56729d0fed7c4044f241853a to your computer and use it in GitHub Desktop.

Select an option

Save peacefulseeker/f0f4e36b56729d0fed7c4044f241853a to your computer and use it in GitHub Desktop.
Htaccess Browser Cache Enable
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/jpeg "access plus 4 weeks"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/gif "access plus 43829 minutes"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment