I'm fetching a file using getScript:
$.getScript("android/android.js")
and the I cache that file in a cache manifest:
/android/android.js
When i Try to load the page cached, I get a "Get" error.
I'm fetching a file using getScript:
$.getScript("android/android.js")
and the I cache that file in a cache manifest:
/android/android.js
When i Try to load the page cached, I get a "Get" error.
Be default, $.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
});
Alternatively, you could define a new method that uses the more flexible $.ajax() method.