• Hello, we’ve noticed that when inserting an image from azure storage, the srcset attribute is missing the year/date portion of the directory for resized versions of the image. The main image src attribute is fine, as is the first image in the srcset attribute (which is the same as the main src attribute), but subsequent images for smaller-sized images are not.

    For example, given the following:

    <img loading="lazy" width="776" height="506" src="https://media.domain.com/media/2019/01/filename.jpg" alt="" class="wp-image-33" srcset="https://media.domain.com/media/2019/01/filename.jpg 776w, https://media.domain.com/media/filename-300x196.jpg 300w, https://media.domain.com/media/filename-768x501.jpg 768w" sizes="(max-width: 776px) 100vw, 776px">

    The last 2 files are missing the year/month portion of the URL, which results in 404 errors at smaller viewport sizes.

    We first noticed this with version 4.3.1, but have updated to 4.3.2 and the issue persists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @webstructure,

    Which version of the plugin are you using? I tested the latest version and the scrset data is correctly set.

    Thread Starter webstructure

    (@webstructure)

    Thanks for your reply. We’ve recently updated everything, so we’re running version 4.3.2 of the plugin with the latest version of WordPress.

    Hi @webstructure, I notice you mentioned the version in the first post, I’m sorry for the duplicated question!

    Look like one of your plugins or theme functions is affecting the srcset output. Here is a fresh site with only the Azure plugin activated: https://10up.tungdu.com/hello-world/, the srcset output is correct.

    Can you please test the plugin on a fresh site or with other plugins deactivated? Do you use CNAME and if yes, how you config it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘srcset attribute missing Year/Month directories’ is closed to new replies.