marinofaggiana 3 years ago
parent
commit
351830af23
1 changed files with 7 additions and 0 deletions
  1. 7 0
      iOSClient/Utility/NCUtility.swift

+ 7 - 0
iOSClient/Utility/NCUtility.swift

@@ -23,6 +23,7 @@
 
 import UIKit
 import SVGKit
+import KTVHTTPCache
 import NCCommunication
 import PDFKit
 import Accelerate
@@ -240,11 +241,16 @@ class NCUtility: NSObject {
                 if mimetype == contentType {
                     editor = result.editor
                 }
+                
                 // HARDCODE
                 // https://github.com/nextcloud/text/issues/913
+                
                 if mimetype == "text/markdown" && contentType == "text/x-markdown" {
                     editor = result.editor
                 }
+                if contentType == "text/html" {
+                    editor = result.editor
+                }
             }
             for mimetype in result.optionalMimetypes {
                 if mimetype == contentType {
@@ -265,6 +271,7 @@ class NCUtility: NSObject {
         
         URLCache.shared.memoryCapacity = 0
         URLCache.shared.diskCapacity = 0
+        KTVHTTPCache.cacheDeleteAllCaches()
         
         NCManageDatabase.shared.clearDatabase(account: nil, removeAccount: true)