Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zero_shift
· 9y ago · 0 comments
You can, but it's a lot harder than building a very fast website that just uses Express to render Pug templates and that caches HTML in a CDN.
Comments
[–]
rthomas6
9y ago
If the site is static enough to do that, why wouldn't I just use a static site generator? Not being snarky, I'm really trying to learn.
[–]
zero_shift
OP
9y ago
You might need to retrieve your document content from a database. The CDN can phone home every so often to check its caches are still valid. This is basically how we served The Guardian.