On https://www.hl7.org/fhir/http.html section 2.21.0.7 Support for Versions, first sentence “Servers that support this API [versioning] SHOULD provide full version support…” leads to the conclusion that not all servers support versioning.
What is the recommended way to check if a server supports or not versioning?
Is that checking the capabilities for each resource looking for “vread” interactions? Or should check for all the endpoints that accept _history?
Read the spec, but at run-time, you’ll be able to find whether history is supported by looking at that path in the CapabilityStatement returned from meta.