设置header居然无效果,缓存依然,真是冒汗.
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>

最后在URL地址上面加一随机数或时间,问题解决.
var url=”http://www.tagbar.cn/index.php?ajax=1&id=2&ignore=” + new Date().getTime();

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2022-01-05
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-05-23
猜你喜欢
  • 2021-11-24
  • 2021-11-17
  • 2021-04-19
  • 2022-02-14
  • 2022-12-23
  • 2021-08-21
  • 2022-03-06
相关资源
相似解决方案