I am using $.getScript
to load some of my program code. My code looks something like this:
var mainJs = "/main.js";
$.getScript( mainJs )
.then(function () {
console.log("main.js loaded");
});
The code works fine. However, I am thinking to use Angular-cache to do caching control on it. Is it possible to be done?
$http
cache stores actual responses in javascript objects. Those are not maintained between page loads – charlietfl Aug 26 '15 at 16:01