Replies: 1 comment
-
Note I don't think this is anyone's fault who implemented various versions of the detection logic. I think it's a situation where the spec is vague and different servers have done different things, so any version of the detection logic that is efficient for some servers is going to be broken for other servers -- hence the detection logic being updated in circles, and a way to opt out of detection logic entirely is desirable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The logic to detect whether range requests are supported or not is complicated and brittle. (The openFile function in runtime_browser.ts).
reliable_head_requests
andallow_full_http_reads
, that have effects that are hard to understand even when reading the code.SET reliable_head_requests = true
to get range requests to work in the Vite dev server, butSET reliable_head_requests = false
to get them to work with files served on source.coop (which I think is S3 under the hood).I think much of this could be mitigated if there was a setting like
force_range_requests
, on/off/unset, that worked like:This would work well in two situations:
force_range_requests
and seeing what happens.I think both of these situations are well communicated by offering a
force_...
flag -- if you use it, what happens is on you, but we have it because you might know better than we do.Beta Was this translation helpful? Give feedback.
All reactions