This project contains the Azure DevOps tasks which can be used for caching the pipeline artifacts properly.
You would need both a Linux and a Windows machine to test out all the features (especially the mounts) for this extension. The process of how mounts work is pretty different in both the operating systems (I couldn't find a good library which does both at this moment. If you do, let me know!)