π£πΈπ«π²
05/24/2023, 5:08 PMdave
05/24/2023, 5:28 PMπ£πΈπ«π²
05/24/2023, 5:31 PMdave
05/24/2023, 5:35 PMπ£πΈπ«π²
05/24/2023, 5:35 PMdave
05/24/2023, 5:35 PMπ£πΈπ«π²
05/24/2023, 5:36 PMSkye
05/24/2023, 5:36 PMπ£πΈπ«π²
05/24/2023, 5:37 PMSkye
05/24/2023, 5:37 PMdave
05/24/2023, 5:37 PMSkye
05/24/2023, 5:37 PMrequest.cf.country
or request.cf.colo
to try and work out where the nearest server is - and fetch that, but if one is offline, there's not much you can doπ£πΈπ«π²
05/24/2023, 5:38 PMdave
05/24/2023, 5:38 PMcurl -s "https://untrusted.files.ai.moda/api/v1.0.0-alpha/ping" | jq
π£πΈπ«π²
05/24/2023, 5:39 PMπ£πΈπ«π²
05/24/2023, 5:40 PMdave
05/24/2023, 5:40 PMhttps://untrusted.files.ai.moda/api/v1.0.0-alpha/url/generate_one_time
^ we have a similar ish use-case, and made this to return the endpoint with the estimated lowest latency for the user.π£πΈπ«π²
05/24/2023, 5:41 PMπ£πΈπ«π²
05/24/2023, 5:41 PMdave
05/24/2023, 5:41 PMπ£πΈπ«π²
05/24/2023, 5:42 PMdave
05/24/2023, 5:43 PMπ£πΈπ«π²
05/24/2023, 5:43 PMdave
05/24/2023, 5:44 PMdave
05/24/2023, 5:45 PMdave
05/24/2023, 5:46 PMπ£πΈπ«π²
05/24/2023, 5:47 PMdave
05/24/2023, 5:47 PMπ£πΈπ«π²
05/24/2023, 5:49 PMdave
05/24/2023, 5:51 PMhtml
<link fetchpriority="low" rel="preload" href="/geolocation.json" as="fetch" crossorigin="anonymous" />
That way when we fetch /geolocation.json
later, it's already loaded.