Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huanz/seajs-cache
a seajs plugin to cache js in localstorage
https://github.com/huanz/seajs-cache
cache javascript localstorage seajs
Last synced: about 6 hours ago
JSON representation
a seajs plugin to cache js in localstorage
- Host: GitHub
- URL: https://github.com/huanz/seajs-cache
- Owner: huanz
- Created: 2015-03-03T05:55:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-09T04:03:40.000Z (almost 9 years ago)
- Last Synced: 2024-04-16T00:55:20.375Z (7 months ago)
- Topics: cache, javascript, localstorage, seajs
- Language: JavaScript
- Size: 155 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# seajs-cache
seajs.config({
base: './js/sea-modules/',
alias : {
"jquery": "jquery/2.1.3/jquery",
'_' : 'underscore/1.6.0/underscore',
'backbone' : 'backbone/1.1.2/backbone'
},
'map' : [ [ /^(.*\.(?:css|js))(.*)$/i, '$1?v=20150417' ] ],
// 调试模式
debug : false
});
debug为`true`不执行`localstorage`缓存,通过修改`v`来更新版本。