{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/firefox-ios/issues/1214","labels_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/1214/comments","events_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/1214/events","html_url":"https://github.com/mozilla/firefox-ios/pull/1214","id":114663876,"number":1214,"title":"Bug 1109675 - Implement 'Request Desktop Site'","user":{"login":"Johennes","id":1137962,"avatar_url":"https://avatars.githubusercontent.com/u/1137962?v=3","gravatar_id":"","url":"https://api.github.com/users/Johennes","html_url":"https://github.com/Johennes","followers_url":"https://api.github.com/users/Johennes/followers","following_url":"https://api.github.com/users/Johennes/following{/other_user}","gists_url":"https://api.github.com/users/Johennes/gists{/gist_id}","starred_url":"https://api.github.com/users/Johennes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johennes/subscriptions","organizations_url":"https://api.github.com/users/Johennes/orgs","repos_url":"https://api.github.com/users/Johennes/repos","events_url":"https://api.github.com/users/Johennes/events{/privacy}","received_events_url":"https://api.github.com/users/Johennes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-02T19:11:55Z","updated_at":"2015-11-05T08:56:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/1214","html_url":"https://github.com/mozilla/firefox-ios/pull/1214","diff_url":"https://github.com/mozilla/firefox-ios/pull/1214.diff","patch_url":"https://github.com/mozilla/firefox-ios/pull/1214.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/mozilla/firefox-ios/issues/comments/153992690","html_url":"https://github.com/mozilla/firefox-ios/pull/1214#issuecomment-153992690","issue_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/1214","id":153992690,"user":{"login":"Johennes","id":1137962,"avatar_url":"https://avatars.githubusercontent.com/u/1137962?v=3","gravatar_id":"","url":"https://api.github.com/users/Johennes","html_url":"https://github.com/Johennes","followers_url":"https://api.github.com/users/Johennes/followers","following_url":"https://api.github.com/users/Johennes/following{/other_user}","gists_url":"https://api.github.com/users/Johennes/gists{/gist_id}","starred_url":"https://api.github.com/users/Johennes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johennes/subscriptions","organizations_url":"https://api.github.com/users/Johennes/orgs","repos_url":"https://api.github.com/users/Johennes/repos","events_url":"https://api.github.com/users/Johennes/events{/privacy}","received_events_url":"https://api.github.com/users/Johennes/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T08:56:35Z","updated_at":"2015-11-05T08:56:35Z","body":"Yes, sorry, I forgot to mention that I also tried the `cachePolicy` parameter but to no avail. I just double checked this and for whatever reason it appears to only happen on `stackoverflow.com`. When I load that page and long-tap reload, I usually end up with the mobile site instead of the expected desktop site and there are no observable network requests during the reload. Only when I repeatedly long-tap reload, I ultimately see a network request and the page reloads with the desktop appearance. This seems to happen regardless of what I specify for the cache policy (or the timeout interval) and is also independent of whether I reset the user agent in `didCommitNavigation` or not.\r\n\r\nThe fact that there is no actual network request when using `loadRequest` could mean that `WKWebView` handles the caching autonomously either on top of the standard URL content cache or in its own cache. I wasn't able to dig up any documentation on this behavior, however, and it's very confusing that it only seems to happen on one particular site.\r\n\r\nI made a change to use the \"cache-policy initializer\" of `NSURLRequest` when the initial URL is different from the current URL. Shall I keep it like this or shall I use `loadRequest` in all cases?\r\n\r\nPS: Fully agree on the `m.` subdomains. :)"}}