Base solution for your next web application
Open Closed

client side permission check update in IE #791


User avatar
0
thiago floriano created

Hi,

I'm having a strange problem.

In my application, I made login via ajax and, after successful login, I request a fresh copy of scripts (GetScripts) to check the permissions.

Chrome does it well, as alaways.

But in IE i only get updated permissions after refreshing the page.

Why does this happen?


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    I did not try it like that before. I always refresh all page after login. Is there any exception in the browser console?

  • User Avatar
    0
    thiago floriano created

    After trying to solve it for 2 days, I had an insight and it saved me.

    Internet Explorer was caching de GetScripts request.

    Setting cache to FALSE solved the problem.

    $.ajax({ url: '/AbpScripts/GetScripts', cache: false, });

    Thanks!