I am working on some Ajax for a page that polls a app. The app returns a JSON string and the browsers parses it and hands it off to the screen.
As this polling takes place every 500 milliseconds (arbitrary) I notice that the response is coming back to the browser and being added to the resources section of the browser - see attachment. My question then is "Is this normal for every response to mount up"? If this app is left for 20 mins that is a hell of a lot of built up items...
答案 0 :(得分:0)
What you are seeing is an artifact of having the debugger open. When it's open, it saves lots of information about what is going on. When the debugger is not open, it is not saving anything.
Ajax results should not accumulate on their own if the debugger is not open.