Skip to content

fix(ios): share URLCache across fetch transports - #157

Open
peterpme wants to merge 1 commit into
margelo:mainfrom
peterpme:peter/fix-share-ios-url-cache
Open

fix(ios): share URLCache across fetch transports#157
peterpme wants to merge 1 commit into
margelo:mainfrom
peterpme:peter/fix-share-ios-url-cache

Conversation

@peterpme

Copy link
Copy Markdown

Summary

  • use one internal iOS URLCache for standard and streaming fetch sessions
  • preserve the existing 32 MiB memory capacity, 100 MiB disk capacity, disk path, and protocol cache policy

Why

Both iOS transports currently create separate URLCache objects backed by the same nitrofetch_urlcache disk path. Sharing one cache keeps memory and disk cache ownership consistent and makes lifecycle behavior unambiguous without disabling or clearing caching.

Closes #156

Validation

  • xcrun swiftc -parse for all changed Swift files
  • bun lint (passes with two existing no-shadow warnings)
  • bun typecheck
  • bun test --maxWorkers=2
  • commit hooks

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

@peterpme is attempting to deploy a commit to the Margelo Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ios): share URLCache across fetch transports

1 participant