I am working with an ajax request and I received a JSON object as a response from AJAX. Now I am trying to cache this JSON object and how to get data from the cache. I want to show cache data from the following server request with the same request with the same parameter values.
self.categorySelected = function (selectedCategory, event) { $.ajax({ url: '/services/ShopService.asmx/XGetRefurbishedproducts', data: JSON.stringify({ displayName: itemDisplayName, categoryid: selectedCategory.CategoryId(), language: lang }), type: "POST", dataType: "json", cache: true, contentType: "application/json; charset=utf-8", beforeSend: function () { $(event.target).prop('disabled', true); } }).done(function (data) {
jquery c # ajax web-services
Devi Prasad Mar 01 '16 at 7:00 2016-03-01 07:00
source share