Hacker News new | ask | show | jobs
by xena 729 days ago
That way I don't have to rebuild the binary to update the website. This makes posting new articles take tens of seconds at most.
2 comments

I wonder what compression gains, are you serving the gziped version directly based on Accept-Encoding headers to avoid a decompression and compression? If not it would be possible to just use Store[1] to use the zip as a container format but not a compression format.

[1]: https://pkg.go.dev/archive/zip#Store

Makes sense, thanks for answering.

Aside — the architecture diagrams on https://xeiaso.net/blog/xesite-v4/ are not displaying in-browser for me, but do transfer correctly and are viewable on my computer. Maybe another mime issue, as the network inspector shows them being transferred with type "octet-stream"?

Repro by visiting the URL in latest Firefox, Safari, or Chrome.

This is something I'm aware of and need to fix when I have the time. Just need to figure out how to best write this migration. I know exactly what I need to do, just gotta write code to do it.