• Hello,

    i uploaded all the photos files via CLI, everything seems to work, i see the photos on cloudflare, but the images are served from my origin server.

    i purged the cache but nothing works, i have cf-images-config-written and cf-images-setup-done set to 1 in database and

    I also checked the option to Parse page for images.

    What is wrong please?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @lyassinel,

    There’s several things that I’ve noticed on your pages. First, you have JavaScript-based lazy loading. Often this will add a blank placeholder image and then replace with the original image after the page has loaded. This will prevent the plugin from properly replacing the images, because it processes the page before it loads.

    The second thing – you’re serving WebP images with .jpg/.png extensions? Looks like you have some custom overrides on either the server level or maybe .htaccess file? This shouldn’t be an issue, but, again, if the images are somehow manipulated on the page after the page load – the plugin will not be able to intercept that.

    I think the JS-based lazy loading is the root cause. Can you disable that and test?

    Best regards,
    Anton

    Thread Starter lyassinel

    (@lyassinel)

    Hello,

    i removed the lazyload script but thats not changed anything. I do not understand to why my jpg as a webp type.

    Maybe an old media optimization plugin manipulated the images? I’ve launched a regeneration of the site’s thumbnails…
    My .htaccess file is very simple

    # BEGIN WordPress
    # Les directives (lignes) entre ??BEGIN WordPress?? et ??END WordPress?? sont générées
    # dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
    # Toute modification des directives situées entre ces marqueurs sera surchargée.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thread Starter lyassinel

    (@lyassinel)

    it seems to work, but not on the frontpage. And i do not understand the problem with jpg and webp

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @lyassinel,

    Seems to be working on all pages. At least, I can see all the images serving from Cloudflare. Except a few background images, which are not supported.

    With WebP, what I meant is if you look at the network requests in the browser console, for example, the image Optimized-boxing-gloves-lying-empty-ring-min.jpg is served as image/webp.

    Best regards,
    Anton

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working for me’ is closed to new replies.