[wp-trac] [WordPress Trac] #36899: The srcset attribute (Responsive images) always returns the local URL of the file, not the URL on a CDN

WordPress Trac noreply at wordpress.org
Sat May 21 08:03:49 UTC 2016


#36899: The srcset attribute (Responsive images) always returns the local URL of
the file, not the URL on a CDN
---------------------------+-----------------------------
 Reporter:  kameraadpjotr  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Media          |    Version:  4.5.2
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 My site uses Rackspace Cloud Files as CDN for its images, so no images are
 stored locally.

 All this works fine (the ''src'' attribute is set correctly), but when
 wordpress creates the ''srcset'' attribute for responsive images, it uses
 the local path (''https://www.example.com/wp-
 content/uploads/2016/05/thumbnail.jpg'') and not the CDN path
 (''https://files.rackspace.com/file/thumbnail.jpg'').

 Expected result: it returns the CDN path and not the local path.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36899>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list