Giter Site home page Giter Site logo

Comments (3)

seeekr avatar seeekr commented on July 18, 2024

Hmm, it seems that this is intentional, as in the CF workers Request API doesn't actually support changing how the fetch() call should interact with the cache. That is a bummer... It's kinda hard to reliably navigate and use the workers APIs with what feels like so many limitations and things you have to pay special attention to and understand in detail before it'll do the simple things you need it to do...

And though the documentation is quite good overall, I feel like I'm stumbling waaay too much still. Might just be me, don't know.

from workers-types.

KianNH avatar KianNH commented on July 18, 2024

The Fetch Web API has a few properties or options that aren’t relevant to the server-side context of Workers so they’re not implemented - like mode, credentials, etc

from workers-types.

seeekr avatar seeekr commented on July 18, 2024

@KianNH Thanks, omitting those makes sense. But what about the cache property specifically? It would be pretty great to be able to tell CF how it should behave regarding caching for a particular fetch() call. This question might be a product question, but maybe you (or someone else) knows what the current thinking here is, and/or if this particular property just has been forgotten about in some fashion but there's no reason not to implement and provide it?

Thanks again!

from workers-types.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.