         }
 	}
 
+	func shouldSkipSendfile(response: HTTPResponse) -> Bool {
+		if self.allowResponseFilters {
+			return true
+		}
+		// can not use sendfile for SSL requests
+		if let sslCon = response.request.connection as? NetTCPSSL {
+			return sslCon.usingSSL
+		}
+		return false
+	}
+	
 	func sendFile(request: HTTPRequest, response: HTTPResponse, file: File) {
 
 		response.addHeader(.acceptRanges, value: "bytes")

    }

	func sendFile(remainingBytes remaining: Int, response: HTTPResponse, file: File, completion: @escaping (Bool) -> ()) {
		if self.allowResponseFilters {
			let thisRead = min(chunkedBufferSize, remaining)
			do {
				let bytes = try file.readSomeBytes(count: thisRead)


		guard file.exists else {
            return fnf(msg: "The file \(path) was not found.")
		}
		
        do {
