Taking expirations out of caching
Posted by David May 22, 2007 @ 04:07 PM
It’s been said that the two last hard problems in programming are naming things and expiring caches. The first is going to be hard to sidestep entirely, but what if we could the second? Tobi arrived at a eureka moment for just that using Memcached and various kinds of caching. Instead of manually expiring things, just ask for a specific version, and let the caching engine take care of dumping that which isn’t used any more.
Read more on The Secret to Memcached.

That sounds a lot like using a time stamp on JavaScript and CSS files with far-future expiration dates. When a page loads, the browser checks it’s own cache for the specified version. If the browser doesn’t have the version then it asks the server.
Great and excellent article t’s realy helpful.
博客营销