News for hackers. Stuff that matters.
Re:Mako – fast, production-grade web bundler based on Rust by mikojan on Tuesday July 02, 2024 @02:40PM (#40859314)
You need to use some kind of automation to fingerprint your files for optimal caching.

Where applicable there simply does not exist a better caching strategy than fingerprint plus Cache-Control: immutable

Re:Mako – fast, production-grade web bundler based on Rust by mgaunard on Tuesday July 02, 2024 @04:03PM (#40859960)
Well but I might have a hundred files, only one of which changed.

The 99 other ones are still in the browser cache and don't need to be re-(down)loaded.

If I bundle everything, then I have to scrap and reload everything, which is probably great for the final user, but not the developer actively modifying it.

Re:Mako – fast, production-grade web bundler based on Rust by mikojan on Tuesday July 02, 2024 @06:03PM (#40860847)
A bundler does not necessarily produce a single file. I have not tried Mako. But from the docs it appears to do code splitting just like the others.