 						}
 					} else {
 						var hasError = false
-						print(" registerHttpHandlerMethod THREAD--- \(NSThread.currentThread())")
-						if method == "GET" {
+                        if let isReachable = NetworkReachability.sharedInstance.isReachable where isReachable == false {
+                            // No internet connection
+                            hasError = true
+                        } else if NetworkReachability.sharedInstance.isReachableViaWiFi() == false && self?.isWhitelistedUrl(requestedUrl) == false {
+                            // do not download large files if user is not on WiFi
+                            hasError = true
+                        } else if method == "GET" {
 							ConnectionManager.sharedInstance
 								.sendRequest(.GET,
 											 url: requestedUrl,

    }
    
    //MARK: - Private Helpers
    private func getTabBlockingInfo(webViewId: Int) -> [NSObject : AnyObject]! {
        let tabBlockInfo = self.context.evaluateScript("System.get('antitracking/attrack').default.getTabBlockingInfo(\(webViewId));").toDictionary()
        return tabBlockInfo


    func setAdblockEnabled(value: Bool) {
        dispatch_async(dispatchQueue) {
            
            if value == true {
                self.extractAdblockerSeedFiles()
            }
            
            self.context.evaluateScript("CliqzUtils.setPref(\"\(self.adBlockPrefName)\", \(value ? 1 : 0));")
            self.context.evaluateScript("CliqzUtils.setPref(\"\(self.adBlockABTestPrefName)\", \(value ? true : false));")
        }
