You can also just use proper HTTP cache headers. ETag and a very long Expires header.