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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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():
Alternatively, you could define a new method that uses the more flexible $.ajax() method.
From jQuery’s documentation on getScript()