From ae99fb1991b84d992987adea38f8f0627fb13d33 Mon Sep 17 00:00:00 2001
From: Colby Swandale Be default, By default, Caching Responses
- $.getScript()
sets the cache setting to false
. This appends a timestamped query parameter to the request URL to ensure that the browser downloads the script each time it is requested. You can override this feature by setting the cache property globally using $.ajaxSetup()
: $.getScript()
sets the cache setting to false
. This appends a timestamped query parameter to the request URL to ensure that the browser downloads the script each time it is requested. You can override this feature by setting the cache property globally using $.ajaxSetup()
:
$.ajaxSetup({
cache: true