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

    Erisa | Support Engineer

    02/26/2023, 1:29 PM
    is it a custom domain with cache?
  • j

    jlam

    02/26/2023, 1:49 PM
    yes
  • e

    Erisa | Support Engineer

    02/26/2023, 1:52 PM
    on the requests that are slow, do you get cf-cache-status: HIT ?
  • e

    Erisa | Support Engineer

    02/26/2023, 1:58 PM
    if so, please open a support ticket and let me know the ticket number, or let me know if you cant manage to open a ticket
  • j

    jlam

    02/26/2023, 1:59 PM
    hmm i did some more playing around and it seems like I can get normal speeds in incognito but not in the normal browser. it might also be because i'm using a different subdomain/bucket (but on the same domain). i'll open up a ticket if i can't work it out
  • a

    andrew

    02/26/2023, 2:56 PM
    @jlam incognito also disables your browser extensions…
  • j

    jlam

    02/26/2023, 2:57 PM
    I'm aware of that, but I'm confident adblock and other extensions weren't affecting it since I disabled them. I also noted the content served fine in the normal browser after it loaded in incognito. Maybe my internet just died
  • g

    gotfredsen

    02/26/2023, 3:04 PM
    Credential access key has length 53, should be 32 ??? using Rclone ???
  • s

    Skye

    02/26/2023, 3:09 PM
    Do you by any chance have the
    # some comment
    on the same line as the access key in your file?
  • s

    Skye

    02/26/2023, 3:09 PM
    I remember there being something weird about a comment in the file and rclone
  • g

    gotfredsen

    02/26/2023, 3:11 PM
    yeah 🙂 that was it 🙂 thanks
  • g

    gotfredsen

    02/26/2023, 3:12 PM
    uploading some trained AI data and needed to use rclone for that so 🙂
  • g

    gotfredsen

    02/26/2023, 3:13 PM
    pth files can become rather big
  • e

    Erisa | Support Engineer

    02/26/2023, 3:21 PM
    If you open a ticket feel free to let me know the ticket number so I can look into it - definitely shouldnt be seeing this if theres not something wrong on your end
  • j

    jlam

    02/26/2023, 3:22 PM
    Thanks Erisa, should be all good now. I'll let you know if I open a ticket
  • r

    rez0n

    02/26/2023, 4:27 PM
    Hi there, I have issue with CORS using R2 Storage, I investigated this, looked all community forum threads and now I sure there are some issue in place. Use case: R2 Bucket on dedicated domain serving static files for website on another domain. It works except content loaded through css files
    src: url(../webfonts/fa-solid-900.eot);
    I prepared example Static content bucket: https://cors-test-static.quaded.com Website which use css and font from static bucket: https://cors-test-page.quaded.com/index.html Look devconsole. Meanwhile, this helped to fix issue, but obviously it is not best solution: https://community.cloudflare.com/t/problem-with-settings-cors-policies-on-r2/432339/18
  • k

    kian

    02/26/2023, 4:34 PM
    Have you actually setup CORS on that bucket through the dashboard or S3 API & are having problems with that?
  • k

    kian

    02/26/2023, 4:34 PM
    CORS isn’t enabled by default by any means
  • r

    rez0n

    02/26/2023, 4:37 PM
    Hi @kian I configured CORS through the dashboard, current configuration is echoed on the example page (allowed all by wildcard, non-wildcard allowance also was in place).
  • r

    rez0n

    02/26/2023, 4:37 PM
    CSS file loads correctly, but child assets not loads.
  • r

    rez0n

    02/26/2023, 4:43 PM
    You know, by some reason it works now, but not worked this night when I worked to prepare example. Maybe some cache affected this. Hm... Anyway as you can see by community threads it's wide issue, maybe due to default CORS settings which getting cached?
  • a

    aeharding

    02/26/2023, 4:52 PM
    Hi all! Hopefully someone can help me with this problem I'm having with range requests on a production workflow. The following request correctly respects the range header:
    Copy code
    curl https://cdn-temp.urbanist.video/streaming-playlists/hls/3ef701af-04bb-4b63-9e53-a95e97a20463/177da0e8-5823-4702-bab2-5b7d6fd1b3d7-1440-fragmented.mp4 --header "Range: bytes=0-1330" -o out.mp4
    But this one doesn't, and instead returns the entire object:
    Copy code
    curl https://cdn-temp.urbanist.video/streaming-playlists/hls/3ef701af-04bb-4b63-9e53-a95e97a20463/43440bd2-e85b-4b49-9f10-3f6c56f09e8c-2160-fragmented.mp4 --header "Range: bytes=0-1330" -o out.mp4
    Any help would be really appreciated! ❤️ Thank you!
  • a

    aeharding

    02/26/2023, 5:32 PM
    Okay, so as a workaround I followed this: https://community.cloudflare.com/t/public-r2-bucket-doesnt-handle-range-requests-well/434221/4 and turned off caching for the r2 bucket public domain, so the above request now works fine. Obviously this isn't ideal. Cloudflare, please fix range requests for r2 buckets 🙂 Thank you
  • e

    Erisa | Support Engineer

    02/26/2023, 5:39 PM
    if turning off caching fixes it, could it be a general CDN cache issue rather than R2 specific?
  • e

    Erisa | Support Engineer

    02/26/2023, 5:40 PM
    reading the post now though
  • a

    aeharding

    02/26/2023, 5:40 PM
    Yeah, based on the above thread it appears to be a general cf CDN issue. Also the range requests directly to the bucket work great
  • e

    Erisa | Support Engineer

    02/26/2023, 5:42 PM
    I see, that sounds less than ideal caching behaviour, would have thought it would return the range even if it does grab the whole file in the background
  • a

    aeharding

    02/26/2023, 5:42 PM
    Yes 🙂 I have a hunch that because the 4k video is > 500mb, the range request is not respected when using a custom domain and cf proxies it
  • a

    aeharding

    02/26/2023, 5:44 PM
    because the problem only occurs when trying to fetch the 2160p file (others are fine)
  • z

    Zeblote

    02/26/2023, 5:55 PM
    this is a known bug with the cache, when it serves a range request it first tries to obtain the full file, cache it and serve ranges from that
1...914915916...1050Latest