Ajax cache solve the problem

Caching issues in ajax purpose is to speed up the process of accelerating access to applications, the impact of the application ajax application server-side implementation of access, but there will be a cache issue.

Solutions include:

1. requested url url address to get a different math.random every time a new request, but may appear repetitive phenomenon.

2.url stamped dete.getdate function

3. By adding a header no_cache so there is not cached appear

4. From the cache itself solve, when a request to the server function If the cached address as the server address, it shows that the cache and the data did not change when the service server generates a new cache.

Guess you like

Origin blog.csdn.net/weixin_44133711/article/details/90524711