Support » Plugin: Image optimization & Lazy Load by Optimole » If image src URL start does not match site url start then images don’t serve

  • Resolved steveo2000

    (@steveo2000)


    Hey,

    We’ve noticed that if you have hardcoded links in post content, widgets, etc to an image within your site but the URL does not match the WordPress site URL it doesn’t get served through the CDN.

    For example our site URL in WordPress is http://www.site.com

    A hardcoded img had the src as site.com/some-image-url (without www), this didn’t get served. If we change that hardcoded bit to http://www.site.com/some-image-url it works fine.

    I noticed this because a few images weren’t being served from Optimole and this is why.

    Hopefully only effects a few people in certain scenarios but worth mentioning.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Bogdan Preda

    (@bogdanpreda)

    Hello,

    Can you check inside https://dashboard.optimole.com for the account in question if you have whitelisted the version with www. of the site.com?

    I suspect that is the issue but I can not confirm since I dont know the account.

    You could get in touch with us via https://optimole.com/#contact so we can check your account.

    Let us know.

    Thank you!

    Thread Starter steveo2000

    (@steveo2000)

    No it’s not white listed, only the automatically added version from the site URL is there.

    I guess it’s more a question of whether the domain and all it’s sub domains by wildcard should be included in the whitelist by default then?

    • This reply was modified 2 years, 7 months ago by steveo2000.
    • This reply was modified 2 years, 7 months ago by steveo2000.
    Plugin Support Bogdan Preda

    (@bogdanpreda)

    Only the domain should be whitelisted, the subdomains usually get processed automatically.

    If maybe it was wrongly whitelisted you can adjust that from your dashboard.

    Let us know if this works for you.

    Thank you!

    Thread Starter steveo2000

    (@steveo2000)

    Well with this site we didn’t do anything other than the normal setup so it added the http://www.domain.com to the list, but obviously then that subdomain is only whitelisted and we needed the domain.com adding for it to work.

    Plugin Support Bogdan Preda

    (@bogdanpreda)

    Hello,

    It might be a small bug on our end we will investigate this.
    The fix as I mentioned before is to have the main domain.com whitelisted.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘If image src URL start does not match site url start then images don’t serve’ is closed to new replies.