Re:Ask HN: Static site generator that can cope with octopus ...
by onion2k on Tuesday September 06, 2022 @09:10AM
(#32736625)
I honestly can't think of a reason why you'd go to all the effort of using a static site generator and not generate complete pages. What benefit is there in using mod_include?
[ Parent
| on HN ]
Re:Ask HN: Static site generator that can cope with octopus ...
by iam-TJ on Tuesday September 06, 2022 @09:24AM
(#32736768)
De-duplication, or rather, not duplicating in the first place. Perfectionist requirement :)
Re:Ask HN: Static site generator that can cope with octopus ...
by onion2k on Tuesday September 06, 2022 @09:45AM
(#32737028)
De-duplication, or rather, not duplicating in the first place. Perfectionist requirement :)
I refuse to accept that a perfectionist would use Apache.
Re:Ask HN: Static site generator that can cope with octopus ...
by delfinom on Tuesday September 06, 2022 @09:42AM
(#32736997)
Or you know, spend the extra $0.001 on the storage to let it be duplicated and move on with your life. De-duplication here has zero net benefits unless you are talking a static site generator here where you somehow have tens of billions of pages to make the storage cost prohibitive
You are also killing the environment by pissing power away on each request that could have been preprocessed and served indefinitely.
Re:Ask HN: Static site generator that can cope with octopus ...
by pdpi on Tuesday September 06, 2022 @09:30AM
(#32736831)
The problem with perfectionism is that it makes you optimise for one metric at the exclusion of all else.
Here, the price you pay for avoiding duplication is having to do extra work at run time. The fact that you need to do any work at all in user space also blocks you from using zero-copy IO.
Re:Ask HN: Static site generator that can cope with octopus ...
by Sohcahtoa82 on Tuesday September 06, 2022 @10:27AM
(#32737543)
You're talking about de-duplicating HTML.
Unless you've got literally millions of pages, you're probably talking about wasting a few megabytes at the most. You're adding the complication of using SSI for no real reason beyond "I just want it that way."