CDN Assets don’t resize or use template image sizes
-
Hello,
We have the pro version of this plugin. Everything works fine when using the default URL. When using a CDN URL, the image sizes are not pulled properly. Meaning, this shows the full sized image, not the resized size. This is easy to duplicate by enabling and disabling the CDN.
The CDN is applied using the hook:
wp_get_attachment_url
The hook is doing this:
str_replace(WP_CONTENT_URL, \OLY_SITE_CLOUDFRONT_URL.'/wp-content', $url);
It should also be noted that we are using a protocol agnostic URL:
e.g.//cdn.assets.domain.com
But this issue happens even when using a strict typed protocol too.Any help on this is appreciated.
- The topic ‘CDN Assets don’t resize or use template image sizes’ is closed to new replies.