Here is what Cloudflare Workers do

preview_player
Показать описание
I used cloudflare workers to fix a problem I had with my Cloudapp screenshot service. Pretty sweet!
Рекомендации по теме
Комментарии
Автор

Using the "move line" keyboard shortcut in VS Code to animate a diagram of how service workers work is one of my favorite dev youtube moments in months 😂 just wonderful.

franksonjohnson
Автор

While my use-case for CF workers if pretty different from yours, I feel like you found an incredible use-case to really show the power of this platform. Short video, but answers everything I needed to know to confirm that this is exactly the platform I was looking for. Thanks for the great video. 👍

Chaoticaa
Автор

Really cool and practical example. Thanks Wes!

JamesQQuick
Автор

Damn, first time I ever see such a powerful trick, Cloudflare is great, thank you and keep up the amazing work.

mysticaltech
Автор

For other watchers: you can use regular expressions in Workers, so the last part of finding image URL will be more readable.

alvechy
Автор

Moral Of The Story:
use subfolder for random named stuff.

kumarvishalben
Автор

Wes, it's not a nodejs script, It's Javascript using the Workers API. They run via Isolates which is a lighter construct compared to node running in a VM.

chris-ewwl
Автор

Lol, I use Droplr and for fun, just tried adding /content.jpg and now I can hotlink the screenshots.
So in a roundabout way, thanks for showing me that :)



Also, the workers look really cool!

heyimamaker
Автор

"If you want to replace every instance of 'cloud' with 'butt' on a website, you could absolutely do that here."

saywhatnow? 🤣😄😆

r-i-ch
Автор

Remember also by enabling that orange cloud limits your max_upload_size to 100MB. Looks like you use mainly pictures so nothing to worry about, but keep that in mind.

nick-leffler
Автор

That off axis headset is killing my OCD!

TeeKaaY
Автор

I didn't know Jeremy Renner could code this well!

matthealy
Автор

Now we saw css30, and your angular ideas :) haha.

JosephChambers
Автор

Hi Wes, why didn't you use Url Rewrite instead of a worker?

offir
Автор

Cool video, Wes. Watched a few times now.


Is it possible to intercept google analytics and append the headers?

DavidElstob
Автор

Great content Wes! One question though -- To stop unnecessary request couldn't you put the route of the worker to *wes.io/*/content ? And that way you also don't have to check for forwarding request without /content? Cheers!

IDOLIKIofficial
Автор

Could you set the route for the worker to *wes.io/*/content* so that it is only used for the image requests and not the page requests?

BrosZim
Автор

Very cool! Another cool thing you could do is to redirect wes.io to wesbos.com (and properly set the referrer) because I think that wes.io is a pretty cool domain name!

MohamedSaleh
Автор

How to make Cookie stuffing whit cloud flare workers?

connect-r
Автор

"Why Wes posted a video about the work environment at Cloudflare?"

vitorvidal