Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx config to return Magento 1 not cached images if the cached version does not exist
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
You can’t perform that action at this time.