Pages fetched with POST are never cached, so the cache and ifModified options in jQuery.ajaxSetup() have no effect on these requests. The browser divides the URL into parts and recognizes a host, then sends to that host a GET request with the rest of the URL as argument. made possible using the same underlying code. And in exactly the same manner as jQuery.get(), this method is like using jQuery.ajax(), and specifying a “type” of “POST.” So, this method is recommended if you need to make a quick Ajax call via POST, and don’t need to make a lot of configuration decisions. I've always had this dillemma whether to use .post or .ajax for a few situations, but I got kept using .post? Answer: jQuery.get() and jQuery.post() contain features that are subsets of jQuery.ajax(). So you might say that jQuery.get() and jQuery.post() are both shorthand for jQuery.ajax(). Results of GET operations can be cached, which means that multiple calls to the same operation may result in only one request to your service. Quite often, a developer might implement an AJAX call inside the success function of another one. Does HTTPS hide the URLs being accessed? The server takes it from there. […]. Type the characters you see in the picture below. Learn to code for free. On the other hand, binary data, images and other files can all be submitted through, All form data filled in is visible in the URL. Forms in HTML can use either method by specifying method="POST" or method="GET" (default) in the