[-] FO : Apply changes from commit 1.4.X 1d0d59845b5f9cb9333a89e60523ab41df076d89 no cache for POST queries

This commit is contained in:
gRoussac
2013-01-23 15:48:15 +01:00
parent f8d5b33251
commit a48d2668d3
20 changed files with 144 additions and 69 deletions
+6 -3
View File
@@ -49,7 +49,8 @@ function updateStateByIdCountry()
var query = $.ajax({
type: 'POST',
url: baseDir + 'modules/carriercompare/ajax.php',
headers: { "cache-control": "no-cache" },
url: baseDir + 'modules/carriercompare/ajax.php' + '?rand=' + new Date().getTime(),
data: 'method=getStates&id_country=' + $('#id_country').val(),
dataType: 'json',
success: function(json) {
@@ -78,7 +79,8 @@ function updateCarriersList()
var query = $.ajax({
type: 'POST',
url: baseDir + 'modules/carriercompare/ajax.php',
headers: { "cache-control": "no-cache" },
url: baseDir + 'modules/carriercompare/ajax.php' + '?rand=' + new Date().getTime(),
data: 'method=getCarriers&id_country=' + $('#id_country').val() + '&id_state=' + $('#id_state').val() + '&zipcode=' + $('#zipcode').val(),
dataType: 'json',
success: function(json) {
@@ -129,7 +131,8 @@ function saveSelection()
var query = $.ajax({
type: 'POST',
url: baseDir + 'modules/carriercompare/ajax.php',
headers: { "cache-control": "no-cache" },
url: baseDir + 'modules/carriercompare/ajax.php' + '?rand=' + new Date().getTime(),
data: 'method=saveSelection&' + $('#compare_shipping_form').serialize(),
dataType: 'json',
success: function(json) {