Image Linking and Facebook Issues with CDN Turned On
-
Since moving to LiteSpeed Server and the LiteSpeed Cache Plugin a few weeks ago, I have been seeing problems with the Featured Image not being recognized by Facebook when I post notifications of new articles.
Today, I tried turning off the CDN and flushing my caches, and after I did so, Facebook had no problems with the images. This led me to find another curious issue which I think might be behind this.
I noticed that images that I am embedding into posts since switching to LiteSpeed and your plugin all seem to be being embedded with the full URL including the cdn subdomain. In earlier posts, when I click on an image and check it’s URL, the media is linked from my domain https://martinbaileyphotography.com/ but for the last few posts, the images are being linked from https://cdn.martinbaileyphotography.com/ including the cdn subdomain.
I believe this is not how this should work, and what is causing the problems with my featured images on Facebook. The major issue I see with this is that I might at some point stop using a CDN or have to turn it off for troubleshooting, but if the images embedded in my posts are hard-coded with the subdomain, the images will not load under these conditions.
Also, of course, I cannot be turning my CDN on and off each week to trick Facebook into correctly including my images, and I will also have broken images whenever anyone else links to my posts, and it looks terrible.
For your reference, here is a link to the fb developer website for a post that still has the problem: https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fmbp.ac%2F669
So, I want to ask, is this the way that embedding images is intended to work with LiteSpeed Server and your plugin? If it is, do you not see this as an issue? Are other people not having problems also? If it is not, can you think of a reason why my blog is working this way since I started to use your plugin?
Regards,
Martin.The page I need help with: [log in to see the link]
- The topic ‘Image Linking and Facebook Issues with CDN Turned On’ is closed to new replies.