Live data from Hacker News

Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

wordpress.org

21–30 of 66 posts

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#21

Nice work! I wish more WordPress plugins took a Unix like approach of just doing one thing well. Wat too common for good plugins to grow into a bloated mess over time.

Thanks! I hope to keep it simple for a long time, and ideally profitable.

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#23
post #8

Why use a cf worker rather than use wp hooks to upload to r2 when an image is uploaded? Where does the url rewrite happen - wp hook or in cf worker? As another comment said, 2.99 unlimited is a TERRIBLE idea

The purpose of the worker is to offload all Cloudflare configuration to a single endpoint that fetches and caches each image on demand. This removes the need for any configuration at the WordPress level and keeps credentials out of WordPress entirely.

The URL rewrite happens in a WordPress hook. And yes, the $2.99 plan could technically cover around 200 GB in R2, but there is real liability attached to that.

What price would feel fair and still interesting to you?

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#24

I wouldn't use this, because it seems odd to use a Cloudflare Worker for something inherently static, but I thought about what I might use, and bunny.net came to mind. Now I have a question, which is why on the Bunny.net pricing page doesn't it mention Cloudflare? https://bunny.net/pricing/ It mentions CDN77, BytePlus, CacheFly, CloudFront, and Fastly. Is what Cloudflare provides in a different market segment?

Yes, the worker handles the fetch and cache. In normal use the URLs would point straight to the R2 public endpoint. Cloudflare might end up cheaper than Bunny.net. Five terabytes on Cloudflare would be about $75, but you avoid egress fees entirely and gain access to more than 300 edge locations.

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#25

my feedback... a lot of my clients just use cloudflare and its basically free.

This is true. Honest question: how technical are your clients? I’m trying to get a sense of whether there’s a market where paying $2.99 a month is a better choice than moving the domain to Cloudflare.

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#26

[flagged]

I'm listening.

https://github.com/Qbix/Platform

Having said that, I am a big fan of CDNs. Your origin server can generate pages and that’s a lot better than static sites.

If you want a decentralized Internet, don’t use the Web. Use something like Pears / Holepunch / Hypercore / Dat (same thing hehe)

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#27
post #7

Cloudflare has their own image optimization and caching service, would be a good alternative: https://developers.cloudflare.com/images/transform-images/ I wrote a basic plugin for Jekyll to automatically prefix my images with this. Pretty much just set it and forget it: https://github.com/catskull/catskull.github.io/blob/master/_... Am I missing something or is this way harder to do in Wordpress?

The idea here is that WordPress will still host and transform the images (could have many stacked plugins as a pipeline) but the plugin will rewrite the final image's URL to be served by Cloudflare. So you can benefit of whatever pipeline you have in the server, and let the plugin use cloudflare at the edge.

That is what Cloudflare already does by caching images

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#28

my feedback... a lot of my clients just use cloudflare and its basically free.

This is true. Honest question: how technical are your clients? I’m trying to get a sense of whether there’s a market where paying $2.99 a month is a better choice than moving the domain to Cloudflare.

You don't need to "move the domain to Cloudflare"

Re: Show HN: A WordPress plugin that rewrites image URLs for near-zero-cost delivery

#30
We serve over 100 WordPress websites, some with relatively high traffic. I've never encountered a Cloudflare issue with image caching. I am a little confused about what this is all about.

We also have our own CDN-ish DigitalOcean droplets with Terabytes of data transfer available (stacked droplets increase the TB limit under the same account, too). This is a $10-$15 solution for 100+ WordPress sites.

Small droplets (DigitalOcean, Vultr, or managed like CloudWays) offer multi-TB bandwidth for data transfers. With the WebP format, even the highest-resolution image is under 100 KB. We try to keep everything under 50 KB for mobile optimization as well. I don't see sites using 50 GB per month and always below the limits. Why would anyone need an extra layer of complication?

Post reply on HN