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

    Callixd

    03/08/2023, 10:51 AM
    since my worker is on a custom domain, could I just use a Cache rule for its responses?
  • h

    HardAtWork

    03/08/2023, 10:52 AM
    Cache can cache any Request/Response within your Worker, but your Worker will always be invoked, even if you serve a cached response
  • c

    Callixd

    03/08/2023, 10:53 AM
    Hey @HardAtWork, thanks for responding
  • c

    Callixd

    03/08/2023, 10:53 AM
    I get that, but what would be the optimal way to cache the worker's actual response, if any?
  • c

    Callixd

    03/08/2023, 10:54 AM
    I am not running any calls inside the worker
  • c

    Callixd

    03/08/2023, 10:54 AM
    It's a GET call with a JSON response
  • h

    HardAtWork

    03/08/2023, 10:54 AM
    You cannot. If a Worker is on a Route, it will be called, whether a Response is cached or not
  • c

    Callixd

    03/08/2023, 10:54 AM
    ah I see
  • c

    Callixd

    03/08/2023, 10:55 AM
    so the cache api is only for in-worker request/response
  • c

    Callixd

    03/08/2023, 10:55 AM
    good thing I asked before venturing into nothingness 🙂
  • c

    Callixd

    03/08/2023, 10:55 AM
    thanks again
  • e

    el_isma

    03/08/2023, 12:14 PM
    Has anyone gotten ffmpeg.wasm to work on workers? I can't get it to load
  • f

    Fabian

    03/08/2023, 4:39 PM
    Currently there is no possibility to access exception "logs" of workers after they occurred, right? I have a customer that experiences an error that I can't reproduce because of external APIs I don't have access to in production. Suddenly errors arise which don't occur with my test instance but I can't sit the whole day in front of the realtime log and wait for the customer to execute the action. I see that errors are occurring + customer sent me screenshot of the default workers error page (helpful 😛) but I don't see any way to access the error. Just a message would be helpful already
  • f

    Fabian

    03/08/2023, 4:41 PM
    I read something about logpush but that sounds complicated to setup just for this simple use-case
  • s

    Skye

    03/08/2023, 4:41 PM
    If you don't want to use logpush, something like sentry is what i'd say
  • u

    Unsmart | Tech debt

    03/08/2023, 4:43 PM
    Log engine is to allow that but for now you have to use logpush and 3rd party service. Luckily logpush for workers isnt ent only 🙂
  • u

    Unsmart | Tech debt

    03/08/2023, 4:44 PM
    Logpush or use something like sentry in the code 🤷
  • r

    rozenmd

    03/08/2023, 4:44 PM
    D1 can be queried from an Email Worker now, if you install
    wrangler@beta
    , cc @Skye @Chaika
  • f

    Fabian

    03/08/2023, 4:46 PM
    Nice, good to hear that something is in the works :)
  • f

    Fabian

    03/08/2023, 4:49 PM
    Nothing to do in particular with my first question but do you guys use Sentry in prod workers? It sounds like quite a bit of overhead for applications that don't run 24/7 (e.g. workers/lambda/whatever)
  • f

    Fabian

    03/08/2023, 4:49 PM
    And if anyone cared to measure, does it impact CPU time?
  • f

    Fabian

    03/08/2023, 4:50 PM
    Not that I'd be concerned but just because I am wondering
  • d

    dave

    03/08/2023, 4:51 PM
    thanks!
  • d

    dave

    03/08/2023, 4:53 PM
    so what I do, is have logpush exporting to IDrive E2 and Wasabi. Both don't charge for API write requests, so I'm only paying a few pennies per gigabyte.
  • d

    dave

    03/08/2023, 5:32 PM
    you could push to AWS S3, and then have a trigger to basically grep through the files.
  • p

    Pato

    03/08/2023, 5:54 PM
    has anyone that used web crypto ran into this problem:
    Error: DataError, Invalid PKCS8 input., 0
  • d

    dave

    03/08/2023, 6:51 PM
    Why is VS Code complaining about this function not existing?
  • k

    kian

    03/08/2023, 6:51 PM
    where is it getting the types from
  • d

    dave

    03/08/2023, 6:51 PM
  • d

    dave

    03/08/2023, 6:52 PM
1...232723282329...2509Latest