Developer forum

Forum » Rapido » Browser caching and cart

Browser caching and cart

Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi,

I have a customer using the older Wrap-solution, but running DW 9.7.2 with an ajax-based cart.

Whenever they make updates to the cart, by removing a product or submitting an order, it seems that the cart is cached, and the content is not updated or removed, when submitting the order. If we refresh the browser by pressing F5, everything looks fine.

This is the ajax-call for updating the cart, where the url is the url of the ajax-feed for the cart:

function UpdateCart(Url) {
    $.ajax({
        cache: false,
        url: Url,
        dataType: "json",
        success: function (data) {
            CartUpdated(data);
        }
    });

    $('#full-cart').hide();
    $('#empty-cart').show();
}

I've been able to eliminate this behavior, by disabling the browser caching in Settings -> Web & Http -> Http, but this is not the best solution, as it will degrade the overall performance of the site.

--
Best regards
Kurt Moskjaer Andersen


Replies

 
Nicolai Pedersen
Reply

Check the attached setting is not enabled.

Also you can try the setting just below to see if that helps. 

 BR Nicolai

Capture.PNG

 

You must be logged in to post in the forum