Skip to content

[BUG]: iOS Cache Functionality not working #4613

@tnortman-jabra

Description

@tnortman-jabra

Version

6.15.0

What platforms are you having the problem on?

iOS

System Version

18.6

On what device are you experiencing the issue?

Real device

Architecture

Old architecture

What happened?

When specifying shouldCache: true, the video never loads. At least, I think if shouldCache is specified and the video fails to cache, the library should fallback to network request to play

Here's the test URL: http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4

I checked that this URL can support range requests:

curl -I -H "Range: bytes=0-10" http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4
HTTP/1.1 206 Partial Content
Content-Type: video/mp4
X-GUploader-UploadID: ABgVH88IZVuQ3KI-MDoCqzqvvr9yiidS51yxkfcynlM3Hc0S5FZlNe2rAPEj2i61nFajr4c
Expires: Wed, 16 Jul 2025 20:33:13 GMT
Date: Wed, 16 Jul 2025 19:33:13 GMT
Cache-Control: public, max-age=3600
Last-Modified: Thu, 05 Dec 2013 18:50:36 GMT
ETag: "53a6b6e228215ce4cd76367258637425"
x-goog-generation: 1386269436266000
x-goog-metageneration: 2
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 2372820
x-goog-hash: crc32c=aZV9yw==
x-goog-hash: md5=U6a24ighXOTNdjZyWGN0JQ==
x-goog-storage-class: STANDARD
Accept-Ranges: bytes
Content-Range: bytes 0-10/2372820
Content-Length: 11
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: origin, range
Server: UploadServer

And even see it w/ Proxyman:
Image

Reproduction Link

repository link

Reproduction

Steps to reproduce this bug are:

  1. Use
<Video source={{ uri: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4', shouldCache: true }} />
  1. Observe no video loads
  2. Observe logs

Here's a test URL: http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions