axiomhq / axiom-js

Official language bindings and library extensions for Axiom
https://axiom.co
MIT License
84 stars 13 forks source link

Alternative to the cache: no-cache in fetchClient #206

Open n3oney opened 2 weeks ago

n3oney commented 2 weeks ago

Hi, 04034e24787cf454cad662f77b9901de9de9cf8c has introduced using the cache: "no-cache" option when making fetch requests. This however, is unsupported by Cloudflare's Workers and Pages, and unfortunately isn't silently ignored, but throws an error. Is it possible to have an option to disable that parameter, or some alternate solution bypassing it?

It currently causes this error: Error: The 'cache' field on 'RequestInitializerDict' is not implemented.

Which is gone by downgrading to 1.0.0-rc.3, which didn't have that commit in.

See https://github.com/cloudflare/workerd/issues/698#issuecomment-2053681304

bkniffler commented 1 week ago

Please... our logs have been silently failing due to this for several weeks. Maybe making the fetch function over writable would help with these kind of issues.

Bildschirmfoto 2024-06-30 um 09 15 47