Problems with the Iphone 3g browser. Wifi is great

I am creating a website that seems to work perfectly on all web browsers except the iPhone on the 3G network.

For some reason, it doesnโ€™t display correctly, as if CSS werenโ€™t parsing it. As part of my research, I tried the same browser (iPhone Safari) on a wifi connection, and the page looks great.

The page is written in classic ASP, the interesting thing is that if I copy the provided source code from the PC browser and give it the .htm extension, when you view it on the iPhone in 3G, it will be fine. The same code, is it something weird with classic ASP and 3G, or perhaps with a 3G network of mobile networks doing something to block certain content?

I also tried this on the Nokia 3G Vodaphone network, and that's fine.

So, I believe that this confirms that the iPhone browser is not to blame, 3G networks are not to blame, the code is not to blame, so I canโ€™t understand where the problem is, except for the problem with a specific 3G provider.

Perhaps someone has seen this before and has a suggestion / explanation to help fix this problem?

+3
source share
3 answers

A 3g network provider can insert a proxy for serving web pages, for example. to reduce images. It can also add some JavaScript to the page. Such things can be the source of your problems. Some iPhone browsers allow you to view the source of a web page, for example. iCab, so you can double-check what is delivered to the browser from your network provider.

Just guess ...

+1
source

After some investigation, it seems that the solution to the problem was not to use import when using external links to CSS files, 3g is not like for some service providers.

0
source

I came across this a while ago, it was caused by Oss css and javascript compression, and I found that the solution was to add the HTTP Header "Cache-Control: no-transform" directive to these files.

See: http://stuartroebuck.blogspot.co.uk/2010/08/official-way-to-bypassing-data.html

See also. Website demonstrates JavaScript error on iPad / iPhone under 3G but not under WiFi.

For anyone who needs to solve this in ASP.NET, it sets the Cache-Control header according to javascript files using the Rewrite 2.0 URL module http://learn.iis.net/page.aspx/665/url-rewrite- module-20-configuration-reference .

<system.webServer> <rewrite> <outboundRules> <rule name="Compression header" preCondition="Match JS Files"> <match serverVariable="RESPONSE_Cache-Control" pattern="(.*)" /> <action type="Rewrite" value="no-transform" /> </rule> <preConditions> <preCondition name="Match JS Files"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="(javascript)$" /> </preCondition> </preConditions> </outboundRules> </rewrite> 
0
source

All Articles