The browser will handle caching the files for you. Once you load the CDN, it will just use the cache for every subsequent request. You can check this via the Chrome Developer tools, when you refresh a page, you'll see it comes (from cache).
This is a benefit of using the CDN, as it will be cached across your applications.
The problem is, even if I downloaded the script files to local it still loaded from the server.
Hmm, yeah I'm not seeing that. Sorry I don't know what to tell you . . .
Hi Rene, correct me if I am wrong, but the browser should cache the .js files regardless of source. I think I misunderstood the original question. I was thinking that the issue was with the CDN . . .
Maybe I worded it wrong. It will cache the files regardless of source, but it's a cache per domain. So whether they are hosted on your own server or via CDN, they'll get cached in the browser. I think we're saying the same thing though.
All I meant was that by using the CDN, like using the Google CDN for jQuery, is that it's now cached in your browser for all pages to use.
Ah, cache per domain, yes. Yes I think we're saying the same thing as well - - -
Retrieving data ...