IIS7 on Windows Server 2008R2
I have a web site with two folders, one for normal site the other for a mobile version of the site. In wwwroot I have a default.htm which has javascript to detect if browser is mobile, if so I redirect to mobile folder else normal site.
The javascript is from detectmobilebrowser.com and I added the regex to detect tablet like the ipad. I tested the script and it does work and does detect the ipad as a mobile browser.
If I enter mysite.com on a desktop computer the full site is loaded. If I enter mysite.com on my android phone the mobile sit is loaded. If I enter mysite.com on the native safari browser on my ipad the mobile site is loaded. so far so good.
If I enter mysite.com in chrome on the ipad the full site is loaded, HOVEVER, if I enter mysite.com/default.htm then the mobile site is loaded.
In IIS for the root folder (wwwroot) I have the default documents listed with default.htm at the top.
After much testing I have concluded that the default.htm is not being run when accessed from chrome on ipad (!) AND YET the site is somehow being loaded. I have cleared the cache/history on chrome (on the ipad) and still get the same result.
So I have several questions:
1) Does anyone have an explanation for this? How could the normal site be found without processing default.htm?
2) How can I further investigate what is going on here?