Dependency Management Got Awesome CommonJS and AMD Compliant dependency loader for modern web apps

Inject.setExpires

0.5.x

OLD: This is an old version of documentation. You probably want the most recent version of this document, from the sidebar on the right.
Inject.setExpires(minutes);

Specifies a number of minutes that items should persist in localStorage. A value of 0 can be used to ensure no files are retained in localStorage, useful for development.

Setting a value of 0 while items are in localStorage will cause the items in localStorage to be ignored.

comments powered by Disqus