4 ms·
I think I’m just going to write a HTTP server for my website in Go, download the entire website with wget and host that statically. At least that way I can have
by patrickmcnamara 6y ago
I think I’m just going to write a HTTP server for my website in Go, download the entire website with wget and host that statically. At least that way I can have any feature I want.
- egeozcan 6y agoWhy not varnish then?
- patrickmcnamara 6y agoSimply because a lot easier to host static files than it is to host a web server binary that has to be executed. I can just upload to GitHub Pages or AWS S3 and let them worry about the HTTP caching, TLS certs, upgrade to HTTP/3, etc.
- vidarh 6y agoWhen I decided it wasn't worth keeping my personal site dynamic, I took my webapp and pulled out the core of it, and built a small little script that enumerated the possible urls and "requested them" from the old webapp and wrote them to files, turning the webapp into a static site generator.
- patrickmcnamara 6y agoYep, exactly. Wget can do this with the --recursive flag.
- michaelbuckbee 6y agoThere are legit services/plugins that do this with Wordpress for similar reasons.
- NotPavlovsDog 6y agoI've been contemplating converting some legacy WP to static, but have not had the time to review available options. With root access to the server / just good old wget, are there benefits to using the plugins/services? Which would you suggest? Would be grateful if you shared your experience.