Skip to content

Instantly share code, notes, and snippets.

@hannesvdvreken
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannesvdvreken/8e204a624ea5ea7db54b to your computer and use it in GitHub Desktop.
Save hannesvdvreken/8e204a624ea5ea7db54b to your computer and use it in GitHub Desktop.
htaccess
RewriteCond %{REQUEST_URI} =~ "/public.(pictures.(products|banners)|images.default\-).*/"
RewriteRule ^ - [E=cache_control:1,L]
Header unset Last-Modified env=cache_control
Header unset ETag env=cache_control
FileETag None env=cache_control
Header set cache-control "public, max-age=26426400" env=cache_control
ExpiresDefault "access plus 10 months" env=cache_control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment