-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better Safari caching workaround, and skip the HEAD request
Uses Content-Range response header in the first 206 to get the total byte size instead of a separate HEAD request. Changed workaround for Safari range caching bug to only trigger if we detect a bad range, and then use a consistent query parameter until we get another bad one. This seems to reduce unnecessary cache churn, as the bug seems most likely to trigger when reaching the end of the file and then going back, rather than when going forward.
- Loading branch information
Showing
1 changed file
with
78 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters