logoalt Hacker News

thayne05/03/20253 repliesview on HN

One benefit of doing it on the client is the client can cache the result of an include. So for example, instead of having to download the content of a header and footer for every page, it is just downloaded once and re-usef for future pages


Replies

msie05/04/2025

It’s amazing how people vociferously argue against this. If it was implemented we would be arguing over something else.

Sesse__05/03/2025

How big are your headers and footers, really? If caching them is worth the extra complexity on the client plus all the pain of cache invalidation (and the two extra requests in the non-cached case).

youngtaff05/04/2025

I’m willing to bet the runtime overhead of assembly on the client is going to be larger than the download cost of the fragments being included server or edge side and cached

show 1 reply