mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
b8dffdbb13
Opening a document that was stored for offline use fetched it from the server first and only fell back to the stored copy when the request rejected. On a weak or stalled connection the request never rejects, so a boarding pass already on the phone could spin indefinitely. With a stored copy, the live download now gets five seconds, request and body together; after that the stored copy is served and the download is aborted. A connection that breaks while the body arrives serves the copy as well. An HTTP error that comes back in time still surfaces over the copy, and without a stored copy the download waits as long as it always did. The test file is now formatted and leaves the format baseline.