Rowin
Rowin
Explore posts from servers
CDCloudflare Developers
Created by Rowin on 6/10/2024 in #general-help
HTTP/2 to origin with Nginx causing 520 errors
Everything's fine with HTTP/1.1 to origin. I think this problem is caused by Nginx's keepalive_requests. Probably relevant: https://trac.nginx.org/nginx/ticket/1250 The ticket was closed with the message "HTTP/2 connections now support lingering close mechanism." Is there a chance that this is a problem on Cloudflare's side? I noticed that this was recently added to Cloudflare's documentation:
Connection multiplexing is currently being rolled out. It will be enabled gradually on Free, Pro and Business zones. This release will be complete by June 15th 2024. Enterprise zones will be enabled at a later stage.
https://developers.cloudflare.com/speed/optimization/protocol/http2-to-origin/
4 replies
CDCloudflare Developers
Created by Rowin on 4/7/2024 in #pages-help
(Relatively) high latency compared to other services
I noticed that Cloudflare Pages latency is (relatively) quite a bit high compared to Vercel and Netlify. I sent 100 requests to each of these providers and measured the latency to download a txt file containing just Hello!, only counting requests that used an already established connection to the server: Vercel:
95th Percentile: 23.9ms
50th Percentile: 9.9ms
95th Percentile: 23.9ms
50th Percentile: 9.9ms
Netlify:
95th Percentile: 7.9ms
50th Percentile: 6.8ms
95th Percentile: 7.9ms
50th Percentile: 6.8ms
Cloudflare Pages:
95th Percentile: 82.3ms
50th Percentile: 52.6ms
95th Percentile: 82.3ms
50th Percentile: 52.6ms
This is from a VPS from Hetzner in Germany. I get similar results from my home connection in the Netherlands. How come Cloudflare Pages has the highest latency, given the amount of PoPs Cloudflare has? Don't get me wrong, I absolutely love Cloudflare Pages, just wondering if there's something unusual going on here.
53 replies
NNuxt
Created by Rowin on 3/30/2024 in #❓・help
nuxt generate resolve warning
I am getting this warning when I run nuxt generate:
[8:14:40 PM] WARN "file:///C:/Users/<removed>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js" is imported by "virtual:#internal/nitro/virtual/storage", but could not be resolved – treating it as an external dependency.
[8:14:40 PM] WARN "file:///C:/Users/<removed>/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js" is imported by "virtual:#internal/nitro/virtual/storage", but could not be resolved – treating it as an external dependency.
What's causing this?
19 replies
NNuxt
Created by Rowin on 7/8/2023 in #❓・help
[nuxt] Cannot load payload /_payload.json
I just created a brand new Nuxt project using npx nuxi@latest init. I set up routing by adding <NuxtPage /> to app.vue and creating pages/index.vue. Then I made a static export using npm run generate and finally I serve it using npx serve .output/public. I am getting the following error in my browser's console:
[nuxt] Cannot load payload /hello/_payload.json SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
[nuxt] Cannot load payload /hello/_payload.json SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Why is Nuxt is trying to load a non-existent JSON file? Did I find a bug already? 😬
18 replies