Varnish 4.1 supports "tagging" cache entries using the xkey module. Backend responses can declare "tags" by setting the xkey header, and all cache entries with the same xkey tag can be purged at once.
This can be used to purge the various resources generated by Special:EntityData when the entity they are based on changes.
This can also be seen as an experiment for collecting experiences with the xkey mechanism before using it to implement T114662: RFC: Per-language URLs for multilingual wiki pages.