Note that there are some explanatory texts on larger screens.

plurals
  1. POApplication Running With SSL not loading all scripts/CSS on first visit
    text
    copied!<p>Hopefully this isnt a tricky one. I've got a web app that doesn't load all javascript/css/images on <strong>the first visit</strong>. Second visit is fine.</p> <p>After approximately <strong>2 minutes of inactivity</strong> the problem reoccurs.</p> <p>These problems only started occuring <strong>after</strong> the customer requested SSL be applied to the application.</p> <p>Ajax requests stop working after 2 minutes of activity despite a successful page load of all javascript elements.</p> <p>Application timeout is 30 minutes - like I said, everything was fine before SSL was applied.</p> <p>All javascript and CSS files use absolute URLS - e.g <a href="https://blablabla" rel="nofollow">https://blablabla</a></p> <p>There appears to be <strong>no pattern</strong> as to why certain files arent loaded. The firebug Net output shows the status for the failed elements as <strong>'Aborted'</strong>. For example, site.css and nav.css are in the same folder, are declared after each other in the head tag yet one is loaded and the other is not. Both will load fine after refreshing the page (unless roughly two minutes have passed).</p> <p>An Ajax request also shows as aborted after two minutes. However, if i do the request again the Ajax request will <strong>succeed</strong>. Almost as if the first request woke something up.</p> <p><strong>None of these problems occur in Chrome</strong></p> <p>Any ideas? :)</p> <p>FYI this is a .Net 4 C# MVC app running under IIS7 but I'm not sure its relevant since it works in Chrome. Everything worked fine before SSL was applied.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload