Fix expiry of public data of artifact
Description
This does two things:
- check whether public data is available before considering that the artifact is cached
- use buildbox-casd to check for files in addition to directories, so the public data isn't expired too early
This merge request, when approved, will fix: #1264 (closed)
Edited by Abderrahim Kitouni