Re:Introducing Workers KV
by _pmf_ on Friday September 28, 2018 @03:02PM
(#18096100)
OT: we need to read more about your website-in-kv-thingy setup.
[ Parent
| on HN ]
It was pretty trivial. I just stored each page into a value and served them out of there, with some stupid code to infer content-type from file extension. I meant it as a dumb demo because I wasn't feeling creative. I didn't know John would mention it in his blog. :)
Currently this isn't a great way to serve content because the values are limited to 64k, you have to infer content-type (which makes your URLs ugly), etc. So I don't recommend it. We'll come up with something better in the future. :)