https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • z

    Zeblote

    03/02/2023, 12:33 PM
    best to forget about cache reserve and put those images in a r2 public bucket yourself
  • u

    ucinteractivesl

    03/02/2023, 12:36 PM
    Is there anyone performing live streaming with R2?
  • d

    david kezi

    03/02/2023, 12:39 PM
    try adding
    ?response-cache-control=no-transform
    to the request URL
  • z

    Zeblote

    03/02/2023, 12:40 PM
    undocumented features!
  • k

    kian

    03/02/2023, 1:58 PM
    All of transparent decompression is undocumented but that specifically is just part of S3 -
  • j

    JustinNoel

    03/02/2023, 2:18 PM
    Hey vince. I made this for you and anyone else trying to figure out how to manage R2 with a Worker. https://discord.com/channels/595317990191398933/783765338692386886/1080856583417888808
  • a

    Abku

    03/02/2023, 2:41 PM
    Hello, - Suppose I uploaded a file manually on website how I can get it's link? - If someone viewing our object over that r2.dev link that will count in as operations? ( which )
  • u

    ucinteractivesl

    03/02/2023, 4:08 PM
    I´m using R2 to host my VOD service. I see that the bucket has both class A and B operations Only one of them has Cloudflare CDN as far as I know. Which one? And what is the difference between A and B?
  • c

    Chaika

    03/02/2023, 4:10 PM
    The pricing page lists what exact operations count as Class A/B The important thing to note is getting objects counts as class B, which are cheaper $0.36/mil if you go over the 10 mil/per month included
  • c

    Chaika

    03/02/2023, 4:13 PM
    Depends what you are using to upload it/where you store it. If you stored it at /useruploads/58g98gfgfghfg9dfgd/file.txt, then from a custom domain, it would be yourcustomdomain.com/useruploads/58g98gfgfghfg9dfgd/file.txt Don't use your r2.dev subdomain for anything but testing, it's rate limited and not recommended for production. If everything in your bucket will be public (like user attachments for a forum site), use R2 Custom Domains. Otherwise you'll have to use a Worker or something using the S3 API to limit access
  • a

    Abku

    03/02/2023, 4:42 PM
    Thanks for the explanation! 💛 One last one, suppose I uploaded a file and shared link with you, you opened it which type of operation is this?
  • c

    Chaika

    03/02/2023, 4:43 PM
    GetObject operations are Class B. If you put it on a custom domain and enable cache on it, and if it's a cache hit, then it's free
  • a

    Abku

    03/02/2023, 4:45 PM
    Ah Okay!
  • a

    Abku

    03/02/2023, 4:45 PM
    I just uploaded 4 image and how Class A hits to 58
  • a

    Abku

    03/02/2023, 4:47 PM
    4 hours ago it was 46 for A and Public URL Access was not allowed.
  • m

    markalan

    03/02/2023, 4:48 PM
    Large downloads always get failed for users with less than 50Mbs download speed doesn't matter on browser or download manger
  • c

    Chaika

    03/02/2023, 4:54 PM
    Creating a new file (PutBucket, or multipart uploads) are Class A You can find the full list of operations that count here: https://developers.cloudflare.com/r2/platform/pricing/#class-a-operations If you are doing multipart uploads, or if the library you are using is doing lists, could be why. Also I believe there's just some delay in that updating in general
  • a

    Abku

    03/02/2023, 5:16 PM
    Thank you!
  • t

    tonyhb

    03/02/2023, 9:21 PM
    seeing a lot of 499s come in recently. has anything changed?
  • t

    tonyhb

    03/02/2023, 9:21 PM
    we're not closing our client ahead of time, but seeing these errors:
  • t

    tonyhb

    03/02/2023, 9:21 PM
  • a

    andrew

    03/03/2023, 2:56 AM
    @tonyhb consider having a look at this thread: https://discord.com/channels/595317990191398933/1076004597270859866/1076508830017523772
  • a

    andrew

    03/03/2023, 2:57 AM
    The part in particular mentioned by Sid is intriguing - > Oh, very interesting. The curl error code could be something to look into. Apparently 18 means a length mismatch, which probably means that R2 is closing the connection prematurely for slow connections. What’s intriguing is that we see it as a client disconnect as well. Let me look around a little on Monday.
  • a

    andrew

    03/03/2023, 2:57 AM
    so i'm curious if R2 has an issue where it closes connections that are transferring data slowly earlier or differently than other S3 services do
  • a

    andrew

    03/03/2023, 2:58 AM
    anyway maybe follow up here with as much detail you can provide about these connections that are being closed
  • a

    andrew

    03/03/2023, 2:58 AM
    at the end of that thread, Sid gives a bunch of things that they're looking for in order to debug it, so maybe you can try to provide as much of that as possible
  • k

    koudelka

    03/03/2023, 3:33 AM
    Hi, reading through the r2 docs regarding consistency I can find the following page: https://developers.cloudflare.com/r2/learning/consistency/ however it does not seem to mention how it works in relation to put/get request with conditional operations: https://developers.cloudflare.com/r2/data-access/workers-api/workers-api-reference/#conditional-operations Is it possible to use conditional operations to prevent race condition updates on a file with r2?
  • a

    amax

    03/03/2023, 9:40 AM
    Hi devs. I am facing a strange issue while using r2 bucket. I setup custom domain
    cdn.domain.com
    on a r2 bucket named cdn. Ofcourse a record was added to my dns records, CF wouldn't let me modify that dns record, says this record is managed by R2. Now when bucket is deleted, the record stays there and is not deleted automatically. Any solution for this.
  • s

    Sid | R2

    03/03/2023, 11:01 AM
    I’m not entirely sure what race conditions you’re working with, but R2 is always strongly consistent. A get after a put will always return the result of the put, even if the put was conditional (assuming of course that the condition you provided actually causes the put to go through)
  • s

    Sid | R2

    03/03/2023, 11:02 AM
    Hey, this used to be an issue, and AFAIK it was fixed, but apparently not. If you can send me your account ID and bucket name, I can delete this record for you. I’ll also look into why this didn’t happen automatically
1...928929930...1050Latest