Idea/Suggestion Use (weserv) CDN for images

Gummibeer

Astroneer
Moderator
Local time
23:57
Joined
Oct 5, 2019
Messages
1,150
Pronouns
he/him

Atm all images are embedded via the link that was entered. Depending on the used service the loading times are very very very different. A CDN that's a caching layer in the middle would solve this. A free service would be Image cache & resize service which is powered by the "endless" performance capabilities of Cloudflare - The Web Performance & Security Company | Cloudflare .
I already use it in nearly all my projects and it works. The simplest integration would be: https://images.weserv.nl?url=https://example.com/image.jpg. This would keep the used file format and won't change anything. To improve performance the &il and &w= parameters could be used to reduce the size of all images to a reasonable value for a forum and use progressive/interlaced images. Because it uses the already existing URLs and not any storage it's the easiest image CDN to integrate that's possible.

 
Upvote 0

Adam

Mr. Webwide
Administrator
Local time
22:57
Joined
Sep 24, 2019
Messages
1,243
Pronouns
he/him

Nice one! There is support for image proxying built-in so I just need to set one up. That looks like a great service thanks for the recommendation! 😄

 

Gummibeer

Astroneer
Moderator
Local time
23:57
Joined
Oct 5, 2019
Messages
1,150
Pronouns
he/him

Nice one! There is support for image proxying built-in so I just need to set one up. That looks like a great service thanks for the recommendation! 😄
Image proxying via your server will never get what Cloudflare does. 😉 They modify the images if wanted, cache them and set all possible and required cache headers. So much more than a simple proxy.

 
Top