Giter Club home page Giter Club logo

Comments (3)

06chaynes avatar 06chaynes commented on August 22, 2024 1

Very cool to hear, thanks for sharing!

So this one confused me as well at first. This really comes from the cache header directive, which in my opinion was poorly named because I would expect 'no-cache' to literally mean do not cache this. But it actually is more of a, cache this but force a validation before responding with it.

Here's the relevant portion from the docs:
The no-cache response directive indicates that the response can be stored in caches, but the response must be validated with the origin server before each reuse, even when the cache is disconnected from the origin server. link

The directive that tells the client not to cache at all is named 'no-store'. Not confusing at all right! 😀

I considered having the cache modes differ from the spec in this regard, but decided that it could ultimately be more confusing to not have it match the directives seen in the headers. That said, I'm still open to reconsidering that decision.

from http-cache.

nokome avatar nokome commented on August 22, 2024 1

Thanks very much for the quick and detailed response, appreciated. I'll try no-store then :)

from http-cache.

nokome avatar nokome commented on August 22, 2024

Confirming that no-store gives expected behaviour. Will close this issue. Thanks again for your help.

from http-cache.

Related Issues (18)

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.