         if NSURLProtocol.propertyForKey(URLProtocolHandledRequestKey, inRequest: request) != nil {
             return false
         }
-        
+
         if let avoidCache = NSURLProtocol.propertyForKey(MattressAvoidCacheRequestPropertyKey, inRequest: request) as? Bool {
             // We've flagged this request to avoid retreiving from cache
             if avoidCache == true {

        }

        let scheme = request.URL?.scheme
        return scheme == "http" || scheme == "https"
    }

    /**

let cacheLockObject = NSObject()

private let URLProtocolHandledRequestKey = "URLProtocolHandledRequestKey"
public var shouldRetrieveFromOfflineCacheByDefault = false

/**
    URLProtocol is an NSURLProtocol in charge of ensuring
