4 ms·
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 Cloudfla
by adamch 7y ago
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 https://screenplay.page)
- ortekk 7y agoYou 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)
- vageli 7y ago> 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.
- yawaramin 7y agoI'm getting an error trying to load that site: 'The resource from “https://screenplay.page/main-ddefa53b6789be8ec720.css” https://screenplay.page/main-ddefa53b6789be8ec720.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).'