Ajax2-solve cache problems-php (28) and ajax2 cache. Ajax2-solve cache problems-php (28), ajax2 cache 5. ajax quick start ajax code: Php program: Php code: two numbers and seven for ajax computing. For more information about cache resolution, see ajax2-cache resolution-php (28) and ajax2 cache.
V. ajax quick start
Ajax code:
Php program:
Php code:
Ajax calculates the sum of two numbers
7. solve cache problems
The above problems:
Change addition in php to subtraction
If the preceding request parameters are used, addition is still applied. if the new request parameter is used, subtraction is performed.
Solution 1: random number
Math. random ();
Solution 3: Set the request header
SetRequestHeader ("If-Modified-Since", "0 ");
Solution 4: Set the response header
Header ("Cache-Control: no-cache, must-revalidate ");
Callback (28), ajax2 cache 5. ajax quick start ajax code: Php program: Php code: ajax calculate two numbers and seven. Solve the cache problem and above...