News for hackers. Stuff that matters.
Re:Porting my website to Workers Sites and Zola by adamch on Friday September 27, 2019 @02:43PM (#21095008)
This makes it incredibly easy for me to deploy Elm web apps (which are all static). For a while now, my side-project's backend (Rust) was deployed in a Cloudflare worker and the frontend (Elm) was a Github Page (using Cloudflare for DNS).

Today I moved my frontend over to a Worker, and deleted my GitHub page repo. This is much simpler. Now I don't have to worry about cache rules, and I can use the same deployment tooling for the backend and frontend.

(I am a Cloudflare employee on a totally different team, and the project is a plaintext screenplay renderer https://screenplay.page)

Re:Porting my website to Workers Sites and Zola by ortekk on Friday September 27, 2019 @02:58PM (#21095191)
You don't have to worry about cache rules, but what about your bill with Cloudflare?

5$/month plan is kinda open ended, you pay for each request above included in the plan (0.5$ for 1 million requests)

With a high-perfomance language like Golang for example, I could write a script that's making 500req/second to your site. That would cost you 20$/day.

With Github Pages it wouldn't cost you anything (or they might disable your page if it costs too much bandwidth, not sure)

Re:Porting my website to Workers Sites and Zola by vageli on Friday September 27, 2019 @03:16PM (#21095362)
> You don't have to worry about cache rules, but what about your bill with Cloudflare?

> 5$/month plan is kinda open ended, you pay for each request above included in the plan (0.5$ for 1 million requests)

> With a high-perfomance language like Golang for example, I could write a script that's making 500req/second to your site. That would cost you 20$/day.

> With Github Pages it wouldn't cost you anything (or they might disable your page if it costs too much bandwidth, not sure)

500req/s would result in you being ratelimited by the global worker ratelimit though unless you distributed these requests across multiple IPs.

Re:Porting my website to Workers Sites and Zola by yawaramin on Friday September 27, 2019 @07:22PM (#21097145)
I'm getting an error trying to load that site: 'The resource from “https://screenplay.page/main-ddefa53b6789be8ec720.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).'