|
Nice article, Joe!
One thing to keep in mind is that the level of support for these mechanisms varies. While Last-Modified validators are supported by pretty much every cache, ETags aren't; last time I looked, most of the big Web proxy caches didn't use them. A similar story can be seen on the client side.
Similarly, Vary headers can act like cache-busters; in my testing (which was admittedly a while ago), not a single widely-used Web cache would store a representation with a Vary header; they treated it as a no-store.
Finallly, don't always assume your server will handle caching or other protocol functions for you; they often don't. See: http://www.mnot.net/papers/capabilities.html (also old; I really need to do another round of testing).
httplib2 looks exciting; I'll definately have a play. One of the biggest problems that I see out there is tool support; there just aren't many good server-side or client-side tools that support RESTful applications.
|