Litespeed cache
-
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?
-
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.
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 thanyoursite.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.phpfile, 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.
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.
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.
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?
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.
Thank you very much. Appreciated.
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.
Hello,
OK sure the thread can be close, i appreciate your time and work. Looking forward to monday release.
The topic ‘Litespeed cache’ is closed to new replies.