Skip to content

joelbarnard/jquery-ajax-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

jQuery-AJAX-Cache

jQuery-AJAX-Cache allows you to cache ajax responses using localStorage.

Version

0.1

Usage

$.ajaxCache({
    cacheKeyPrefix: "ajaxcache", //localStorage key prefix
    cacheTTL: 10, //TTL in seconds
    cacheKey: null, //manually specify key instead of using URL hash
    url: "",   // $.ajax();
    success: function (data, textStatus, jqXHR) {}, // $.ajax();
    dataType: "json" // $.ajax();
});

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published