ionic-team / ionic-team/cordova-plugin-ionic-webview

Problem with caching videos after a redirect

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

After installing this plugin we are getting problems playing videos using the html5 video. The problem occurs when a video src url redirects to a video with the cache-control header set to 'private, max-age=0'.

When inspecting the network requests the status code for the redirected page status code is 304 not modified, and safari inspector reports that it is cached.

The video elements errors with the MEDIA_ERR_SRC_NOT_SUPPORTED.

Playback occurs correctly on first load and after a period of time (I assume after a cache has expires)

Using the final (after the redirect) url directly work fine, redirected pages without cache-control header play.

In case people are googling for a similar error: in my case this occurs when using the Vimeo direct links, on the links that resolve to the gcs-vimeo.akamaized.net cdn.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.