diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/pages/AnkiServer.kt b/AnkiDroid/src/main/java/com/ichi2/anki/pages/AnkiServer.kt index 4e87344d98cb..685df0483495 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/pages/AnkiServer.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/pages/AnkiServer.kt @@ -53,6 +53,10 @@ open class AnkiServer( return "http://$LOCALHOST:$listeningPort/" } + // it's faster to serve local files without GZip. see 'page render' in logs + // This also removes 'W/System: A resource failed to call end.' + override fun useGzipWhenAccepted(r: Response?) = false + override fun serve(session: IHTTPSession): Response { val uri = session.uri val mime = getMimeFromUri(uri)