Properties of $ajax in ASP MVC RRS feed

  • Question

  • User-1350042179 posted


    I consume the following post function...

    var ajax = {
    	post: function (url, data, success) {
    		var ajaxSettings = {};
    		ajaxSettings.url = setAjaxUrl(url);
    		ajaxSettings.type = "POST";
    		ajaxSettings.success = success;
    		ajaxSettings.error = setAjaxError;
    		ajaxSettings.data = data;

    I would like to know... How can I know the value of some properties such as: async  and cache..

    Sunday, April 28, 2019 3:42 AM

All replies

  • User288213138 posted

    Hi neoaguil17,

     I don't understand what you want.Do you want to know what these two properties are in this ajax?

    Async, which defaults to true, is asynchronous.

    Cache property is true: after the first request, if the address and parameters do not change, the second request will default to the cache data, not to read the latest data server,

    When the cache property is flase: the latest data is read each time.

    Note: Setting cache to false will only work correctly with HEAD and GET requests.

    More details about how to use jquery ajax property, you could refer to this link:


    If I misunderstand your requirement, please post more details information about your requirement.

    Best Regard,

    Monday, April 29, 2019 3:10 AM