Use Rails caching middleware for version check per #559