public
Created

  • Download Gist
gistfile1.txt
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
</Location>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.