[-] 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 -4
View File
@@ -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',
+2 -1
View File
@@ -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() {
+4 -2
View File
@@ -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",
+2 -1
View File
@@ -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,
+2 -1
View File
@@ -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,