Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:460556
1 2 3 4 5 6 7 8 9 10 11
<LocationMatch "\/(images)\/.*\.(ico|pdf|flv|jpe?g|png|gif|js|css|swf)">
# Set far future expires
RewriteEngine on
RewriteCond %{REQUEST_URI} \.(css|js|jpe?g|png|gif|ico) [NC]
RewriteCond %{QUERY_STRING} [0-9]+$
RewriteRule ^(.*)$ $1 [E=VERSIONED_FILE:1,L]
Header add "Expires" "Mon, 28 Jul 2014 23:30:00 GMT" env=VERSIONED_FILE
Header add "Cache-Control" "max-age=315360000" env=VERSIONED_FILE
Header unset ETag
FileETag None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.