External images are now cached but that's not working
-
hi
WP just changed the handling of external images. So they are now fetched and cached but that it is not working correctly.
so the WP generated html code for image link as a part of my posts looks like this:
<a href="http://img.nova-future.com/image.aspx?id=356" target="_blank"> <img class="Cover" style="width:450px;" src="https://i2.wp.com/img.nova-future.com/image3.ashx" alt="Photo by Max Drake" title="Photo by Max Drake" /> </a>… but it should be like it was a few days ago (see <img> tag)
<a href="http://img.nova-future.com/image.aspx?id=356" target="_blank"> <img class="Cover" style="width:450px;" src="https://img.nova-future.com/image3.ashx?id=356" alt="Photo by Max Drake" title="Photo by Max Drake" /> </a>The blog I need help with is: (visible only to logged in users)
-
sorry … the src property of the img tag should be “http://img.nova-future.com/image3.ashx?id=356” (not https like given above)
-
this is caching is really annoying… all picture galleries with images generated by a script file (php, asp.net etc. ) using ids is not working.
Please remove it again.
-
Two things here. WordPressdotcom uses Photon to cache and serve hotlinked images. This is not new. What is new is that all sites on WordPressdotcom, including custom domains like your site, are now encrypted. Here’s the announcement: https://en.blog.wordpress.com/2016/04/08/https-everywhere-encryption-for-all-wordpress-com-sites/
Can you point to a specific post or page where the images are not appearing?
-
https://novafuture-blog.com/2016/04/02/music-art-selection-of-photos-mix-by-max-drake/
The wp generated code definitely changed for external images. Formerly the src property contained the url of the external image but now it is a wp link.
Cheers
Btw already had a chat with support and they will check the encrypting thing.
-
Hi @novafuture,
When you hotlink an image from an insecure (not https) source like this one, it will cause https errors on your site, which can scare away your readers. So we’re caching the image for you so we can use our own SSL-enabled servers to display it.
But since image.aspx is a program on the other server, rather than an actual image file, we weren’t able to fetch it properly.
Are you able to upload the files to this site instead of hotlinking them?
-
-
- The topic ‘External images are now cached but that's not working’ is closed to new replies.