gpt4 book ai didi

jquery - $.ajax设置缓存: What does that mean in jquery code

转载 作者:行者123 更新时间:2023-12-03 23:05:24 25 4
gpt4 key购买 nike

今天我在 Jquery 代码中观察到以下内容:

$.ajaxSetup({ cache: false });

这是什么意思?如果缓存的值变为 True 会发生什么。

提前谢谢

最佳答案

阅读jQuery.ajax()

cache (default: true, false for dataType 'script' and 'jsonp') Type: Boolean If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.

关于jquery - $.ajax设置缓存: What does that mean in jquery code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32309483/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com