重新加载Ajax宏伟的弹出窗口

I have a magnific pop-up like

$.magnificPopup.open({
            items: {},
            type: 'ajax',
            ajax: {
                settings: {
                    url: some_url,
                    dataType: 'json',
                    method: 'POST',
                    data: params
                }
            },
            key: 'basket_popup'})

first time it works fine. But assume, I have params like {'zz':'mm'}. If I call this function second time and pass new params, I see that in network magnific sends old request. How to avoid it (except calling magnificPopup.close())?

You could just display some dummy empty element (it could contain a loading icon) and load/reload content inside that element using ajax by yourself.

Not familiar with this specific plugin, but you should be able to configure the ajax portion. Try it like this:

$.magnificPopup.open({
        items: {},
        type: 'ajax',
        ajax: {
            settings: {
                url: some_url,
                cache:false,
                dataType: 'json',
                method: 'POST',
                data: params
            }
        },
        key: 'basket_popup'})