I'm loading an external (Vimeo) .mp4 into a standard HTML5 Video tag within an Ionic Framework app, which is working fine except on iOS:
Vimeo's external link (e.g. https://player.vimeo.com/external/
) forwards to an https://gcs-vimeo.akamaized.net
address as they describe here.
On iOS the initial load is loaded from Source: Disk Cache
. However, when navigating away from this page, or stopping and trying to replay the video, it returns a Status: 304 Not Modified
response as it expects the video to be loaded from the cache again I expect. However, within the app the video is not loaded from cache and I just get a broken player (with the source not found).
The video Tag looks Like this:
<div class="player">
<video class="player__video viewer toggle" #exerciseVideo [src]="exercise.video | vimeoVideoUrl | safe:'resourceUrl'" [poster]="exercise.images[0] | awsImageUrl:'medium' | safe:'resourceUrl'" controls playsinline loop tappable></video>
</div>
Any help on how to load it from cache on the second play (ideally), or how to force a fresh network request each time would be greatly appreciated.