title: Javascript with MVC not working in IE without browser debugger
body: <p>I have a following javascript function mixed with MVC controller actions calls:</p>
  
  <pre><code>var loadPartialChapterAfterAnswer = function () {
          $.ajax({                
              url: '@Url.Action("IsAuthenticated", "Story")',
              type: "POST",
              success: function(data) {
                  var isAuthenticated = data;
                  if (isAuthenticated) {
                      if ('@Model.IsPersonality' == 'True') {
                          loadPartialChapter();
                      } else {
                          $("#chapterContainer").load('@Url.Action("GetNextQuestion", "Story")' + '?storyId=' + '@Model.Id', function () {
                              selectedCounter = 0;
                              showOnlyOneQuestion();
                          });
                      }
                  } else {
                      window.location.href = '@Url.Action("RedirectToHomeRoute", "Home")';
                  }
              },
              error: function() {
                  alert("Error");
              }
          });
      };
  </code></pre>
  
  <p>Every time I select one checkbox on my page(view) this function is called. Code works great in all browsers except in IE. In IE the ajax url <code>@Url.Action("IsAuthenticated", "Story")</code> is called OK every time, but the other controller action <code>'@Url.Action("GetNextQuestion", "Story")' + '?storyId=' + '@Model.Id'</code> is called only when the IE's browser debugger is turned on. When IE's debugger window is off this second MVC action is never called.</p>
  
  <p>Any help is highly appreciated!</p>
  
  <p>SOLUTION</p>
  
  <p>I added at the beginning of my page this code:</p>
  
  <pre><code>&lt;script&gt;
      $.ajaxSetup({
          cache: false
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>and now it works! Thanks all for your effort.</p>