aleksandr
aleksandr
CDCloudflare Developers
Created by aleksandr on 11/20/2024 in #pages-help
Removed an HTML page but it's still showing up on my website
Oh, I see. Thanks for clearing that up! Not sure if there are any plans to implement this, but I think it would be helpful to be able to purge that cache too.
7 replies
CDCloudflare Developers
Created by aleksandr on 11/20/2024 in #pages-help
Removed an HTML page but it's still showing up on my website
Interestingly, the page is not up on the deploy preview. It's only up on my live published site. So this URL 404s: https://f8a15d9c.aleksandrhovhannisyan-com.pages.dev/blog/javascript-game-loop/ Headers for the problematic page:
HTTP/2 200
date: Wed, 20 Nov 2024 17:05:38 GMT
content-type: text/html; charset=utf-8
cf-cache-status: DYNAMIC
access-control-allow-origin: *
age: 40439
cache-control: public, s-maxage=604800
referrer-policy: strict-origin-when-cross-origin
x-content-type-options: nosniff
x-robots-tag: noindex
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=USFAt0H4o3FHML2abB9WTn6INLSL4B2hqOSjldYrXbctQbXCuaZbS79Qr1drDhup30XOmEwKMlzYUir3RFbSe8T%2F6ePGJQxJ434DPLY8UtquJgTc0b%2FoueErChoPAZhRocbHyFSTdG1DCKmYEudgZQ%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
vary: Accept-Encoding
server: cloudflare
cf-ray: 8e5a06a85f55ad23-MSP
alt-svc: h3=":443"; ma=86400
server-timing: cfL4;desc="?proto=TCP&rtt=56235&sent=6&recv=9&lost=0&retrans=0&sent_bytes=3405&recv_bytes=857&delivery_rate=47610&cwnd=33&unsent_bytes=0&cid=f9237eb999df216e&ts=145&x=0"
HTTP/2 200
date: Wed, 20 Nov 2024 17:05:38 GMT
content-type: text/html; charset=utf-8
cf-cache-status: DYNAMIC
access-control-allow-origin: *
age: 40439
cache-control: public, s-maxage=604800
referrer-policy: strict-origin-when-cross-origin
x-content-type-options: nosniff
x-robots-tag: noindex
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=USFAt0H4o3FHML2abB9WTn6INLSL4B2hqOSjldYrXbctQbXCuaZbS79Qr1drDhup30XOmEwKMlzYUir3RFbSe8T%2F6ePGJQxJ434DPLY8UtquJgTc0b%2FoueErChoPAZhRocbHyFSTdG1DCKmYEudgZQ%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
vary: Accept-Encoding
server: cloudflare
cf-ray: 8e5a06a85f55ad23-MSP
alt-svc: h3=":443"; ma=86400
server-timing: cfL4;desc="?proto=TCP&rtt=56235&sent=6&recv=9&lost=0&retrans=0&sent_bytes=3405&recv_bytes=857&delivery_rate=47610&cwnd=33&unsent_bytes=0&cid=f9237eb999df216e&ts=145&x=0"
7 replies
CDCloudflare Developers
Created by aleksandr on 9/7/2024 in #pages-help
Documentation on using wrangler.toml to configure a Pages project (not workers/functions)
FWIW, the link at the top of that screenshot doesn't help as that article doesn't list the available commands. There appears to be no way to change the build output directory or root directory. https://developers.cloudflare.com/pages/functions/wrangler-configuration/
2 replies
CDCloudflare Developers
Created by aleksandr on 9/1/2024 in #workers-help
Are Page Functions bundled differently than regular Workers?
Hmm, strange! Well it's good to know they (should) behave the same. I'll have to try again and see if I can figure out why the deploy throws those errors when deploying it as a Page Function instead of an ordinary worker. The package (prismjs) is installed in the root of my repo and imported correctly in the module that my Page Function imports.
5 replies
CDCloudflare Developers
Created by aleksandr on 9/1/2024 in #workers-help
Are Page Functions bundled differently than regular Workers?
No description
5 replies
CDCloudflare Developers
Created by aleksandr on 9/1/2024 in #workers-help
Are Page Functions bundled differently than regular Workers?
One interesting thing I found is that if I go to my Worker in my dashboard and click the Edit code link, I'm able to see the final bundled JavaScript and it looks like it's just bundling all those external modules, which explains why it doesn't run into any problems. So now I'm curious what Page Functions do differently.
5 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
Okay, that resolved my issue (I'm running into other unrelated errors now, but this has unblocked me). Thanks so much!
9 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
Ah, thanks James! Let me give that a shot.
9 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
I also get this warning in my server console when following the quickstart example
▲ [WARNING] The entrypoint functions/api/comments.ts has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using "service-worker" format...
▲ [WARNING] The entrypoint functions/api/comments.ts has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using "service-worker" format...
9 replies
CDCloudflare Developers
Created by aleksandr on 8/31/2024 in #workers-help
Unable to test Cloudflare Page Function: [wrangler:err] Error: No response!
No description
9 replies