[-] FO : Apply changes from commit 1.4.X 1d0d59845b5f9cb9333a89e60523ab41df076d89 no cache for POST queries
This commit is contained in:
@@ -55,8 +55,9 @@ var CartUpd = (function()
|
||||
customizationId = 0;
|
||||
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir,
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseDir + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType: 'json',
|
||||
@@ -74,8 +75,9 @@ var CartUpd = (function()
|
||||
id_address_delivery = $("#cart_product_address_delivery_id_"+id).val();
|
||||
customizationId = 0;
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir,
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseDir + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType: 'json',
|
||||
|
||||
@@ -106,7 +106,8 @@ function sendOrderMessage ()
|
||||
});
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: baseDir + "index.php?controller=order-detail",
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseDir + "index.php?controller=order-detail" + '&rand=' + new Date().getTime(),
|
||||
data: paramString,
|
||||
success: function (msg){
|
||||
$('#block-order-detail').fadeOut('slow', function() {
|
||||
|
||||
@@ -73,7 +73,8 @@ function initEvent()
|
||||
var checked = 0;
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: orderOpcUrl,
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: orderOpcUrl + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
@@ -120,7 +121,8 @@ function updateCarrierSection(elm)
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: orderOpcUrl,
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: orderOpcUrl + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
|
||||
@@ -219,7 +219,8 @@ var ProductFn = (function()
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: customAction,
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: customAction + '?rand=' + new Date().getTime(),
|
||||
data: 'ajax=true&'+$('#customizationForm').serialize(),
|
||||
dataType: 'json',
|
||||
async : true,
|
||||
|
||||
@@ -66,7 +66,8 @@ function getStores(coordinates, radius)
|
||||
// ajax call
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'index.php?controller=stores',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: 'index.php?controller=stores' + '&rand=' + new Date().getTime(),
|
||||
data: 'ajax=true&latitude=' + latitude + '&longitude=' + longitude + '&radius=' + radius,
|
||||
dataType: 'json',
|
||||
async : true,
|
||||
|
||||
Reference in New Issue
Block a user