bulky-sundown-43494
02/16/2023, 12:59 PMconst ory = new FrontendApi(new Configuration(edgeConfig))
ory
.toSession(undefined, {
headers: {
"Cache-Control": "max-age=60",
},
})
.then(({ data }) => {
}
but i can’t see any improvements in loading time ( sessions/whoami request still loading in ~ 500 ms ). I think that the docs at https://www.ory.sh/docs/concepts/cache#configuration ar a bit old, as my ory code from above is a bit different that in the docs. Could i miss something? ( add the header to the request and enable edge sessions on the project )high-optician-2097
bulky-sundown-43494
02/16/2023, 1:10 PMhigh-optician-2097
high-optician-2097
*cf-cache-status:* HIT
high-optician-2097
high-optician-2097
high-optician-2097
high-optician-2097
bulky-sundown-43494
02/16/2023, 1:22 PMhigh-optician-2097
whoami
. that is the performance you can expect once this works on your custom domainhigh-optician-2097
high-optician-2097
bulky-sundown-43494
02/16/2023, 1:28 PMhigh-optician-2097
high-optician-2097
high-optician-2097
bulky-sundown-43494
02/16/2023, 1:31 PMbulky-sundown-43494
02/16/2023, 1:32 PMbulky-sundown-43494
02/16/2023, 1:36 PMhigh-optician-2097
await fetch("<https://auth.openline.ai/sessions/whoami>", {
"headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7",
"sec-ch-ua": "\"Not_A Brand\";v=\"99\", \"Google Chrome\";v=\"109\", \"Chromium\";v=\"109\"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"macOS\"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1"
},
"referrerPolicy": "strict-origin-when-cross-origin",
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "include"
});
high-optician-2097
bulky-sundown-43494
02/16/2023, 2:04 PMbulky-sundown-43494
02/16/2023, 2:06 PMhigh-optician-2097
bulky-sundown-43494
02/16/2023, 2:13 PMhigh-optician-2097
high-optician-2097
bulky-sundown-43494
02/17/2023, 10:22 AMbulky-sundown-43494
02/17/2023, 10:22 AMhigh-optician-2097
/.ory/sessions/whoami
it’s always dynamic right?bulky-sundown-43494
02/17/2023, 10:23 AMhigh-optician-2097
high-optician-2097
high-optician-2097
magnificent-energy-493
high-optician-2097
creamy-evening-80382
04/25/2023, 11:56 AM