Giter VIP home page Giter VIP logo

Comments (2)

aliostad avatar aliostad commented on September 28, 2024

Thanks for reporting. I will look into it but have a feeling is related to #213 which is just fixed during .NET 5.0.

They tried to fix it twice they messed up twice. This will be the 3rd time.

from cachecow.

aliostad avatar aliostad commented on September 28, 2024

OK, apologies for not being able to look into it.

There is no problem in .NET 5.0, one of the tests do not work which I am looking into.

As for your example your assert is wrong. It fails on first time round in fact, since you expect false while it is null.
Change it so you can see:

        [Fact]
        public async Task Simple_Caching_Example_From_Issue263()
        {
            var client = ClientExtensions.CreateClient();
            const string CacheableResource = "https://code.jquery.com/jquery-3.3.1.slim.min.js";
            var response = await client.GetAsync(CacheableResource);
            var responseFromCache = await client.GetAsync(CacheableResource);
            Assert.Equal(true, response.Headers.GetCacheCowHeader().DidNotExist);
            Assert.Equal(true, responseFromCache.Headers.GetCacheCowHeader().RetrievedFromCache);
        }

from cachecow.

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.