Add versioning to the site cache in middleware.