3 Replies Latest reply on Apr 5, 2016 6:49 AM by Sanford Whiteman

    weird ie11 caching on setValues()

      Hello all,

       

      I have a marketo form where is our user is logged in we are prepolulating the form with their account info. We do an API call and using setValues() push the JSON from the API call in to the form. Work great!

      However we have a weird issue on ie11

      User 1 logs in goes to the page with a form.

      User 1 sees their data correctly in the form

      User 1 cancels form and logs out (goes to different page)

      User 2 logs in goes to the page with a form.

      User 2 sees user 1's info prepopulated in the form

       

      If I open dev tools the issue does not occur

      This only happens in ie11 (I tested on win 7)

      We are not storing the results of the api and there are totally different page loads

      Here is my js

       

       

      if (formUser == "registered"){

        var userInfo = "/store/ecomm/getUserInfo";

        $.getJSON( userInfo, function(data) {

        console.log( "success" );

        })

        .complete(function(data) {

        form.setValues(JSON.parse(data.responseText));

        });

        }

       

      I am thinking of adding a delay on the setValues but would rather not delay the info populating on unaffected browsers. Any ideas? Is something being tracked in the munchkin cookie that im missing in dev tools?