Today I have been playing around with Varnish, SSL and SPDY in relation to WordPress hosting. Now, one thing that I noticed was that several images were using the http protocol instead of https – which seemed to be caused by wp_get_attachment_url.
Luckily we can use the WordPress filters to fix this issue pretty easily, as shown in the gist below. This will simply replace the http:// in the URL with https:// if SSL is being used.
Apparently this has been an issue for quite some time, but still hasn’t been fixed in WordPress.
Here are some other posts you may like
Electric power companies, in general, are pretty much the same. Tibber however, is unlike any electricity company I had seen before. They try to utilise the data we get from smart devices, which they also sell, to save electricity, money and the environment, as well as improving comfort. It’s a…
As an outdoor enthusiast, there's nothing quite like the feeling of being nestled in a hammock or tucked away in a tent, enjoying the serenity and peace of nature. But as the sun sets and darkness envelops the landscape, a little extra illumination can make all the difference. Enter the…
It's been about a month since I sold our Tesla Model S 70D, as our Model X 90D 6-seater was about to arrive. Now that I am used to the Model X, I thought I might do a write up comparing the two. Both cars are absolutely great though – more…