Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET & IIS 7.0 -- HTTPS Site Warmup Script
    primarykey
    data
    text
    <p>I have an ASP.NET 4.0 site on IIS 7.0 that is having first time load issues described <a href="https://stackoverflow.com/questions/2102609/slow-first-page-load-on-asp-net-site">here</a>.</p> <p>I've done some testing, and can confirm that it's only the first load of the page that is slow; every subsequent page loads normally. After googling around for this, I found a "warmup" script that can send an HTTP request the first time after the app pool is recycled, and this seems to fix the problem. BUT, I'm not sure if it will work when I force set the page to use only HTTPS/SSL?</p> <p>The script I'm currently using is as follows:</p> <pre><code>Dim website1 website1 = "http://&lt;website domain&gt;/Auth/Login.aspx" Function WarmUpSite(strURL) On Error Resume Next Dim objHTTP Set objHTTP = CreateObject("MSXML2.XMLHTTP") objHTTP.Open "GET", strURL, False objHTTP.Send If Err.Number=0 And objHTTP.Status=200 Then Hget=strURL &amp; " has been warmed up successfully at: "&amp;Date()&amp;" "&amp;Time() Else Hget=strURL &amp; " found error at: "&amp;Date()&amp;" "&amp;Time() End If Set objHTTP = Nothing 'Section for writing into a text file Const FOR_APPENDING = 8 strFileName = "C:\WarmUpLog.txt" Set objFS = CreateObject("Scripting.FileSystemObject") Set objTS = objFS.OpenTextFile(strFileName,FOR_APPENDING) objTS.WriteLine Hget End Function WarmUpSite(website1) </code></pre> <p>So my question is how I would make this work if the website I'm warming up is a login page that will be an HTTPS address, not HTTP? My apologies if this is a dumb question, I do relatively little web work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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