Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Joe McGill

    (@joemcgill)

    Hey Squazz,

    We’ve not done anything at this point to intentionally add support for TotalCache’s CDN capabilities. I’m not sure, off hand, how TotalCache is rewriting the image src attributes. Probably would be a good thing to look into.

    Thanks,
    Joe

    Plugin Contributor Jasper de Groot

    (@jaspermdegroot)

    Probably unrelated but I wonder how the second source in the srcset can be a 1024×768 image with a w value of 600: https://squazz.dk/wp-content/uploads/2014/10/SAM_9652-1024x768.jpg 600w

    The display width of image-size “large” (1024px by default) is limited to $content_width (600px in this case). However, the plugin uses the array with sizes that is returned by wp_get_attachment_metadata to build the srcset. This contains the actual width and height of image-size “large”. So it should be 1024w instead of 600w.

    I haven’t been able to reproduce it with the current code though.

    Joe, do you have any idea how this is possible?

    I have the same question. Using a cdn with w3tc the original src is rewritten to the cdn but the srcset links are not. It looks like this.

    <img width="1199" height="770" src="https://cdn.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-1199x770.jpg" class="attachment-almost-large wp-post-image" alt="Beautiful sky behind couple on walkway over the dunes with some photoshop enhancements" sizes="(max-width: 1199px) 100vw, 1199px" srcset="https://cdn.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-300x193.jpg 300w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-750x482.jpg 750w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-2048x1315.jpg 2048w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-991x636.jpg 991w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-1199x770.jpg 1199w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-100x64.jpg 100w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1-1484x953.jpg 1484w, https://www.ryansmithphotography.com/wp-content/uploads/2015/06/034-beautiful-sky-behind-couple-on-walkway-over-the-dunes-with-some-photoshop-enhancements1.jpg 3000w">

    I’m also using W3TC with CDN & cloud front. Similar issues to rsmith4321.

    <a href="https://c241zmwhx9qhf.cloudfront.net/wordpress/wp-content/uploads/2015/08/image.jpg?062e31" rel="colorbox" class="cboxElement"><img class="wp-image-1415 size-medium" src="https://domain.org/wordpress/wp-content/uploads/2015/08/image-1024x768.jpg" srcset="" alt="image description" width="300" height="225" sizes="(max-width: 300px) 100vw, 300px" data-pfsrcset="https://c241zmwhx9qhf.cloudfront.net/wordpress/wp-content/uploads/2015/08/image-300x225.jpg 300w, https://domain.org/wordpress/wp-content/uploads/2015/08/image-1024x768.jpg 1024w, https://domain.org/wordpress/wp-content/uploads/2015/08/image-250x188.jpg 250w, https://domain.org/wordpress/wp-content/uploads/2015/08/image-533x400.jpg 533w, https://domain.org/wordpress/wp-content/uploads/2015/08/image.jpg 1200w" style=""></a>

    _______________________________________

    <a href="https://c241zmwhx9qhf.cloudfront.net/wordpress/wp-content/uploads/2015/08/image.png?062e31"><img width="930" height="1200" src="https://domain.org/wordpress/wp-content/uploads/2015/08/image.png" class="thumbnail wp-post-image" alt="image description" sizes="(max-width: 930px) 100vw, 930px" srcset="" data-pfsrcset="https://c241zmwhx9qhf.cloudfront.net/wordpress/wp-content/uploads/2015/08/image-233x300.png 233w, https://domain.org/wordpress/wp-content/uploads/2015/08/image-794x1024.png 794w, https://domain.org/wordpress/wp-content/uploads/2015/08/image-155x200.png 155w, https://domain.org/wordpress/wp-content/uploads/2015/08/image-310x400.png 310w, https://domain.org/wordpress/wp-content/uploads/2015/08/image.png 930w" style=""></a>

    Plugin Contributor Jasper de Groot

    (@jaspermdegroot)

    Here is the link to the ticket for this issue in the RICG plugin repo on GitHub: https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images/issues/88.

    Plugin Contributor Jasper de Groot

    (@jaspermdegroot)

    I posted in the W3TC support forum: https://www.ads-software.com/support/topic/cdn-doesnt-rewrite-srcset-urls?replies=1#post-7448963

    As far as I can see only W3TC can fix this and there is nothing we can do.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CDN Support?’ is closed to new replies.