Git Product home page Git Product logo

Comments (3)

neowu avatar neowu commented on August 17, 2024

i am not aware of any ajax response is cached in react application,
so for 5), can you clarify whether page A doesnt send ajax request when goes back, or page sent request (you can see it thru chrome dev tools network), but it got cached (dev tool will show memory cache or disk cache in size column)?
and check whether server side sends any cache-control header? (not supposed to have)

from core-ng-project.

cheffey avatar cheffey commented on August 17, 2024

I confirmed that the API request triggered by backing-up action was used with disk cached. The frontend fixed this bug. I will try to recreate this bug by writing a react demo, if I can do so I will reopen this issue.

from core-ng-project.

neowu avatar neowu commented on August 17, 2024

ok, please update me if you are able to reproduce,

i did quick test, if there is no cache-control header in response, i don't see chrome caches the xhr get request,
i think you may want to double check the response header of the cached ajax call.

if cache-control: no-store is needed (usually you want to add this header for index.html response)
then you can still do it via interceptor, but i haven't encountered any cases like what you said

from core-ng-project.

Related Issues (14)

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.