Last active
June 8, 2017 21:15
-
-
Save Tomasz-Silpion/0a5cb84ec85f7397793b8a271f4f5762 to your computer and use it in GitHub Desktop.
Nginx config to return Magento 1 not cached images if the cached version does not exist
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
location ^~ /media/catalog/product/cache/ { | |
try_files $uri @nocache; | |
} | |
location @nocache { | |
rewrite ^/(media/catalog/product)/(.*/.*/.*/.*)/(.*/.*/.*) /$1/$3 redirect; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment