Skip to content

Instantly share code, notes, and snippets.

View SamBenson's full-sized avatar

Sam Benson SamBenson

View GitHub Profile
@SamBenson
SamBenson / gist:1219630
Created September 15, 2011 15:52
Our .htaccess boilerplate
ExpiresActive On
RewriteEngine on
RewriteBase /
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css