Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged cache
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
Basically, if the value has already been requested once before it's returned immediately from the cache. Otherwise, an AJAX request fetches the data and adds it to the cache. The $.when/.then doesn't care about any of this; all you need to be concern...
0
706
posted 13 years ago by crypticsoft
Cache control when pulling in scripts, redefined "getScript" function
0
708
posted 13 years ago by lamebollock
Handy little snippet i found in 'jquery enlightenment' for caching certain selected files. Could be useful for larger files later on in a site.
1
981
posted 14 years ago by 1man
« Prev 1 Next »