Content version available in js?

Continuing the discussion from Content versions:

Enonic version: 6.6.2-SNAPSHOT
OS: Mac and Linux

Just wondering if there are any way to get the content version id in js.
It’s shown in Content Studio, so maybe there is a way.

I plan to use it to cache the rendered page, such that if you publish a new version, you remove the previous and cache the new rendered page. Sort of like etag.

2 posts were merged into an existing topic: Make content-version available in content api