https://www.koziarski.net/archives/2007/5/28/clever-caching
This link is now broken.
about:
Expiry is a Pain. If you could somehow avoid expiring all the ‘stuff’ you’re caching, your life would be much much easier. The key to getting away with this is to pick a key which completely encapsulates the resource you’re caching, and also ensures that if anything relevant changes, the key changes.