CDN and product variation images issue
-
Hello all!
There seems to be a problem with the CDN feature with woocommerce. It cannot rewrite the url of the images of the .jpg files on “data-product_variations” attribute of the form “variations_form. After viewing the source from my browser the output goes like:
data-product_variations=”[{":"https:\/\/themes.somedomain.com\/storefront\/wp-content\/uploads\/sites\/78\/2015\/07\/stripy-top.jpg","…….
themes.somedomain.com should have been cdn.somedomain.com
Issue maybe related to that. So now it loads the product images multiple times, once from my server and the CDN for the other location of the product images.
Have also searched for solution and it seems this problem has already been existing as well with other caching and cdn plugin. And according to Woocommerce team it is an issue with the caching plugin:
https://www.ads-software.com/support/topic/cdn-variable-product-images-replaced-with-local-urls/
Also the wp fastest cache team seems to have fixed it:
https://www.ads-software.com/support/topic/cdn-wc-variable-product-image-image-url-is-not-cdn-url/
Not verified though as not using it, maybe as a last resort. Very happy with wp supercache for now and really hope this gets fixed as it could stop woocommerce users from using it and also causes them this issue which defeats the purpose of speed as it loads the product images multiple times.
- The topic ‘CDN and product variation images issue’ is closed to new replies.