Hi,
We are having some very unusual issues with delivering media via WP Offload Media ever since we updated Lay Theme back in June. Some of our media is delivered via the correct CDN address, some is delivered via local files, and some is simply not delivered (Lay Theme somehow adds a "www" to the CDN URL).
Examples below:
(1) some media loads correctly via CDN (example: https://www.hartleshkina.com/commissioned-editorial/)
(2) some media doesn't load via CDN - the url strangely adds "www" before (example: https://www.hartleshkina.com/soft-rush-images/)
(3) some media only loads via our server, fully ignoring the CDN (example: https://www.hartleshkina.com/ - homepage)
We have already enquired with the Offload Media team about this and they're looking into delivery issues - but given this only happened after updating Lay Theme, we suspect something is rewriting the URLs of our media.
Their feedback is as below:
- I looked at one of the posts, and an issue I see is that it looks like the Gridder plugin is saving the re-written version of the Media Library item, instead of the origina Media Library URL. It's possible the plugin or code isn't using standard WordPress functions to save the images.
- I would recommend contacting the developers of Gridder if there's a way to use standard WordPress functions to save the Media Library URLs.
- Kindly check the code that displays the images on the frontend (not sure if it's still Gridder) and modify it so that the extra www is not added.
Maybe you have a condition in the code to add the www if the URL does not have it?
Hoping we can hear back on what can be causing this URL rewriting - which is also affecting our backend, not only the frontend. Thanks.