You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5bf7ef8
Browse filesBrowse the repository at this point in the historyBrowse files
perf(api): stream media with byte ranges, cached thumbnails, compression, indexes
Large videos took minutes to start because every file was sent whole and could
not be seeked. Now:
- Range/206 support everywhere file bytes are served (Drive, Shared Spaces,
share links, REST API, WebDAV), plus ETag/304 and HEAD. SERVER files are
AES-256-GCM: partial reads use AES-CTR at the matching GCM counter, so
existing files stream with no re-encryption or migration (full reads are
still GCM-verified). A download is audited/counted once, not per seek.
- /files/:id/thumb and /spaces/:id/files/:fileId/thumb: ~10-30 KB WebP tiles
(sharp) instead of full-size images, cached on disk ENCRYPTED with the
file's key, immutable browser cache, bounded job pool, swept by maintenance.
- gzip/brotli for API JSON (never for file bytes); roomier rate limit for
media routes; full-decrypt stream no longer hangs on a storage error.
- Composite indexes for folder listings (migration 20261102120000).
0 commit comments