Hacker News new | ask | show | jobs
by craz8 2048 days ago
This technique is the way Rails Fragment Caching works, and enables Russian Doll caching

Those terms should help you find more writing about this technique that I always forget isn’t obvious outside the Rails ecosystem

1 comments

DHH helped to popularise it with this post: https://signalvnoise.com/posts/3113-how-key-based-cache-expi...

It's been hugely influential to the way I think about scaleable pages. It's a similar idea to the cache-busting techniques well-known with URLs (https://example.com?style.css=1234 etc), but applied to page fragments recursively, where a change in any component also "revs"/"bumps" its parent components.