https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • c

    Crazy Rabbit

    02/18/2023, 9:38 PM
    Thanks
  • c

    Crazy Rabbit

    02/18/2023, 9:40 PM
    but can you create a response with readableStream?
  • k

    kian

    02/18/2023, 9:40 PM
    new Response(stream)
  • a

    altryne

    02/18/2023, 9:40 PM
    hey master @kian , since you're around, you have been able to somehow to communicate betweet two custom domain workers, any chance for a gist? I'm losing my mind on this issue of 522 and you posted before that it worked for your example
  • k

    kian

    02/18/2023, 9:40 PM
    > any chance for a gist? Just two Workers with custom domains - nothing more
  • k

    kian

    02/18/2023, 9:40 PM
    Copy code
    toml
    [route]
    pattern = "custom-a.blah.com"
    custom_domain = true
  • c

    Crazy Rabbit

    02/18/2023, 9:41 PM
    Copy code
    yml
    Cloudflare DNS: content-length: 45
    No Cache DNS: content-length: 45
    Cache DNS: content-length: 55
  • c

    Crazy Rabbit

    02/18/2023, 9:41 PM
    so with cache API more content is added?
  • c

    Crazy Rabbit

    02/18/2023, 9:42 PM
    and this added content from cache api seems to break DNS.
  • a

    altryne

    02/18/2023, 9:42 PM
    Gah that's literally what I have up 2 workers with one calling the second one. and I get a 522. Could this be per account? 🤯
  • d

    Dani Foldi

    02/18/2023, 9:44 PM
    I think caching a DoH response from cloudflare-dns.com within a Worker makes no sense
  • c

    Crazy Rabbit

    02/18/2023, 9:45 PM
    2023-02-18-22-44-02
  • c

    Crazy Rabbit

    02/18/2023, 9:45 PM
    I don't know it could be faster?
  • c

    Cyb3r-Jok3

    02/18/2023, 9:46 PM
    Cache on workers.dev isn't documented to work
  • d

    Dani Foldi

    02/18/2023, 9:46 PM
    *is documented to not work?
  • c

    Cyb3r-Jok3

    02/18/2023, 9:46 PM
    Yeah
  • c

    Cyb3r-Jok3

    02/18/2023, 9:47 PM
    Maybe try running it with
    wrangler dev --local
  • c

    Crazy Rabbit

    02/18/2023, 9:47 PM
    I'm using custom domain
  • d

    Dani Foldi

    02/18/2023, 9:47 PM
    I don't think you'd be more than 3-5ms behind by fetching every time - and by that point why create "your own" DoH worker anyways if you're just caching/returning another value 😅
  • c

    Crazy Rabbit

    02/18/2023, 9:48 PM
    it does cache content, but somehow it gets bigger response?
  • c

    Cyb3r-Jok3

    02/18/2023, 9:48 PM
    Am I reading it wrong? It looks like
    workers.dev
  • c

    Cyb3r-Jok3

    02/18/2023, 9:49 PM
    That is what
    wrangler dev
    uses
  • c

    Crazy Rabbit

    02/18/2023, 9:49 PM
  • c

    Cyb3r-Jok3

    02/18/2023, 9:49 PM
    Then you are using the published worker
  • c

    Crazy Rabbit

    02/18/2023, 9:49 PM
    correct
  • c

    Crazy Rabbit

    02/18/2023, 9:50 PM
    I don't do local development anymore for workers
  • c

    Cyb3r-Jok3

    02/18/2023, 9:50 PM
    Oh I'm dumb. I didn't see you are using publish each time
  • d

    Dani Foldi

    02/18/2023, 9:50 PM
    testing in production noises
  • c

    Crazy Rabbit

    02/18/2023, 9:50 PM
    hahaha project has not been released yet XD
  • h

    HardAtWork

    02/18/2023, 9:51 PM
    I’m confused. What is the benefit supposed to be here?
1...228522862287...2509Latest