• Resolved diaphragm0714

    (@diaphragm0714)


    Hello,

    I see this is a great plugin you have made, having read through the support questions i would like to ask, if your plugin supports litespeed cache?

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter diaphragm0714

    (@diaphragm0714)

    Hi.

    Yes it does change but it changes like so yoursite.com/de/ or yoursite.com/fr.

    Using the allowed host name etc also does not work, i did extensive checks before providing a feed back to you.

    Plugin Author digitalpoint

    (@digitalpoint)

    Tough to say exactly what’s happening without seeing it, but one possibility is that whatever mechanism you are using to change the URL path (adding the language prefix) could be treating that internally as the root of the domain/site. If that’s the case, the Image Transformation URLs could end up as yoursite.com/fr/cdn-cgi/image, rather than yoursite.com/cdn-cgi/image (which wouldn’t work for Image Transformations).

    If you want to test to see if that’s maybe what’s going on, if you edit the wp-content/plugins/app-for-cf/src/DigitalPoint/Cloudflare/Base/Pub.php file, and find this:

    return home_url() . '/cdn-cgi/image/format=auto,slow-connection-quality=30,onerror=redirect/' . $url;

    …and change it to this:

    return 'https://' . wp_parse_url(home_url(), PHP_URL_HOST) . '/cdn-cgi/image/format=auto,slow-connection-quality=30,onerror=redirect/' . $url;

    Again… it’s just a theory, but that change would force the image transform URLs to be attached to the root of the domain regardless of what WordPress says it should be.

    Thread Starter diaphragm0714

    (@diaphragm0714)

    Hello,

    Thank you for your response. You are correct and this is what happens “yoursite.com/fr/cdn-cgi/image”. I was not so sure how to explain it, but you got it spot on.

    When that happens the images does not work, but strange enough when i tested another plugin it works even is the url has changes.

    Plugin Author digitalpoint

    (@digitalpoint)

    If you want to test it, that single line change given above should resolve it. It not too complicated, so I’m fairly certain that should resolve it even if I’m not able to test it firsthand on this end (I don’t have access to any sites that act that way).

    I’ve applied the change permanently for the next version regardless.

    Thread Starter diaphragm0714

    (@diaphragm0714)

    Hello,

    Thank you for your dedication. Yes i will try to change that line.

    Any idea when the next version will be available for update?

    Plugin Author digitalpoint

    (@digitalpoint)

    There isn’t an exact timeline, but it also shouldn’t be an exceptionally long time. Working on adding Turnstile support for a few third-party plugins, so I’m hoping to get that done first.

    Thread Starter diaphragm0714

    (@diaphragm0714)

    Thank you very much. Appreciated.

    Plugin Author digitalpoint

    (@digitalpoint)

    Going to go ahead and close this one out (feel free to reopen or continue discussion if anything else comes up). I finished what I wanted to finish for the Turnstile stuff, so I’m shooting for a late Monday next version release, which will include the thing for Image Transformations on sites outside of the root domain.

    Thread Starter diaphragm0714

    (@diaphragm0714)

    Hello,

    OK sure the thread can be close, i appreciate your time and work. Looking forward to monday release.

Viewing 9 replies - 16 through 24 (of 24 total)

The topic ‘Litespeed cache’ is closed to new replies.