[-] FO : Apply changes from commit 1.4.X 1d0d59845b5f9cb9333a89e60523ab41df076d89 no cache for POST queries
This commit is contained in:
@@ -110,10 +110,12 @@ var ajaxCart = {
|
||||
|
||||
// save the expand statut in the user cookie
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir + 'modules/blockcart/blockcart-set-collapse.php',
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseDir + 'modules/blockcart/blockcart-set-collapse.php' + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
data: 'ajax_blockcart_display=expand' + '&rand=' + new Date().getTime()
|
||||
cache: false,
|
||||
data: 'ajax_blockcart_display=expand'
|
||||
});
|
||||
|
||||
|
||||
@@ -122,8 +124,9 @@ var ajaxCart = {
|
||||
// Fix display when using back and previous browsers buttons
|
||||
refresh : function(){
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseUri,
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseUri + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
@@ -152,9 +155,11 @@ var ajaxCart = {
|
||||
|
||||
// save the expand statut in the user cookie
|
||||
$.ajax({
|
||||
type: 'GET',
|
||||
url: baseDir + 'modules/blockcart/blockcart-set-collapse.php',
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseDir + 'modules/blockcart/blockcart-set-collapse.php' + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
data: 'ajax_blockcart_display=collapse' + '&rand=' + new Date().getTime()
|
||||
});
|
||||
}
|
||||
@@ -194,7 +199,8 @@ var ajaxCart = {
|
||||
//send the ajax request to the server
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: baseUri,
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseUri + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
@@ -251,7 +257,8 @@ var ajaxCart = {
|
||||
//send the ajax request to the server
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: baseUri,
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: baseUri + '?rand=' + new Date().getTime(),
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType : "json",
|
||||
@@ -698,7 +705,13 @@ $(document).ready(function(){
|
||||
);
|
||||
|
||||
$('.delete_voucher').live('click', function() {
|
||||
$.ajax({url:$(this).attr('href')});
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
async: true,
|
||||
cache: false,
|
||||
url:$(this).attr('href') + '?rand=' + new Date().getTime()
|
||||
});
|
||||
$(this).parent().parent().remove();
|
||||
if ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc')
|
||||
{
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
$('document').ready(function(){
|
||||
$('#favoriteproducts_block_extra_add').click(function(){
|
||||
$.ajax({
|
||||
url: favorite_products_url_add,
|
||||
url: favorite_products_url_add + '?rand=' + new Date().getTime(),
|
||||
type: "POST",
|
||||
headers: { "cache-control": "no-cache" },
|
||||
data: {
|
||||
"id_product": favorite_products_id_product
|
||||
},
|
||||
@@ -19,8 +20,9 @@ $('document').ready(function(){
|
||||
});
|
||||
$('#favoriteproducts_block_extra_remove').click(function(){
|
||||
$.ajax({
|
||||
url: favorite_products_url_remove,
|
||||
url: favorite_products_url_remove + '?rand=' + new Date().getTime(),
|
||||
type: "POST",
|
||||
headers: { "cache-control": "no-cache" },
|
||||
data: {
|
||||
"id_product": favorite_products_id_product
|
||||
},
|
||||
@@ -37,8 +39,9 @@ $('document').ready(function(){
|
||||
});
|
||||
$('#favoriteproducts_block_extra_added').click(function(){
|
||||
$.ajax({
|
||||
url: favorite_products_url_remove,
|
||||
url: favorite_products_url_remove + '?rand=' + new Date().getTime(),
|
||||
type: "POST",
|
||||
headers: { "cache-control": "no-cache" },
|
||||
data: {
|
||||
"id_product": favorite_products_id_product
|
||||
},
|
||||
@@ -55,8 +58,9 @@ $('document').ready(function(){
|
||||
});
|
||||
$('#favoriteproducts_block_extra_removed').click(function(){
|
||||
$.ajax({
|
||||
url: favorite_products_url_add,
|
||||
url: favorite_products_url_add + '?rand=' + new Date().getTime(),
|
||||
type: "POST",
|
||||
headers: { "cache-control": "no-cache" },
|
||||
data: {
|
||||
"id_product": favorite_products_id_product
|
||||
},
|
||||
|
||||
@@ -12,13 +12,14 @@ $(function() {
|
||||
var parent = $(this).parent();
|
||||
|
||||
$.ajax({
|
||||
url: productcomments_controller_url,
|
||||
url: productcomments_controller_url + '?rand=' + new Date().getTime(),
|
||||
data: {
|
||||
id_product_comment: id_product_comment,
|
||||
action: 'comment_is_usefull',
|
||||
value: is_usefull
|
||||
},
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
success: function(result){
|
||||
parent.fadeOut('slow', function() {
|
||||
parent.remove();
|
||||
@@ -34,12 +35,13 @@ $(function() {
|
||||
var parent = $(this).parent();
|
||||
|
||||
$.ajax({
|
||||
url: productcomments_controller_url,
|
||||
url: productcomments_controller_url + '?rand=' + new Date().getTime(),
|
||||
data: {
|
||||
id_product_comment: idProductComment,
|
||||
action: 'report_abuse'
|
||||
},
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
success: function(result){
|
||||
parent.fadeOut('slow', function() {
|
||||
parent.remove();
|
||||
@@ -57,9 +59,10 @@ $(function() {
|
||||
|
||||
url_options = parseInt(productcomments_url_rewrite) ? '?' : '&';
|
||||
$.ajax({
|
||||
url: productcomments_controller_url+url_options+'action=add_comment&secure_key='+secure_key,
|
||||
url: productcomments_controller_url + url_options + 'action=add_comment&secure_key=' + secure_key + '&rand=' + new Date().getTime(),
|
||||
data: $('#fancybox-content form').serialize(),
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
if (data.result)
|
||||
|
||||
@@ -37,8 +37,9 @@ function wait()
|
||||
function doAjax(dataform)
|
||||
{
|
||||
$.ajax({
|
||||
url: '../modules/statsgeolocation/config.php',
|
||||
url: '../modules/statsgeolocation/config.php' + '?rand=' + new Date().getTime(),
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
data: dataform,
|
||||
dataType: 'html',
|
||||
error: function()
|
||||
|
||||
Reference in New Issue
Block a user