Last active
August 29, 2015 14:15
-
-
Save hannesvdvreken/8e204a624ea5ea7db54b to your computer and use it in GitHub Desktop.
htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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