Add two OPDS related mime-types to compress for HTTP

This commit is contained in:
Kelson 2020-05-17 22:00:16 +02:00
parent 15179db945
commit 94c2ab4395
2 changed files with 6 additions and 4 deletions

View File

@ -34,6 +34,8 @@ bool is_compressible_mime_type(const std::string& mimeType)
{ {
return mimeType.find("text/") != string::npos return mimeType.find("text/") != string::npos
|| mimeType.find("application/javascript") != string::npos || mimeType.find("application/javascript") != string::npos
|| mimeType.find("application/atom") != string::npos
|| mimeType.find("application/opensearchdescription") != string::npos
|| mimeType.find("application/json") != string::npos; || mimeType.find("application/json") != string::npos;
} }

View File

@ -144,6 +144,10 @@ const ResourceCollection resources200Compressible{
{ WITH_ETAG, "/skin/taskbar.css" }, { WITH_ETAG, "/skin/taskbar.css" },
{ WITH_ETAG, "/skin/block_external.js" }, { WITH_ETAG, "/skin/block_external.js" },
{ NO_ETAG, "/catalog/root.xml" },
{ NO_ETAG, "/catalog/searchdescription.xml" },
{ NO_ETAG, "/catalog/search" },
{ NO_ETAG, "/search?content=zimfile&pattern=abcd" }, { NO_ETAG, "/search?content=zimfile&pattern=abcd" },
{ NO_ETAG, "/suggest?content=zimfile&term=ray" }, { NO_ETAG, "/suggest?content=zimfile&term=ray" },
@ -158,10 +162,6 @@ const ResourceCollection resources200Uncompressible{
{ WITH_ETAG, "/skin/jquery-ui/images/animated-overlay.gif" }, { WITH_ETAG, "/skin/jquery-ui/images/animated-overlay.gif" },
{ WITH_ETAG, "/skin/caret.png" }, { WITH_ETAG, "/skin/caret.png" },
{ NO_ETAG, "/catalog/root.xml" },
{ NO_ETAG, "/catalog/searchdescription.xml" },
{ NO_ETAG, "/catalog/search" },
{ WITH_ETAG, "/meta?content=zimfile&name=title" }, { WITH_ETAG, "/meta?content=zimfile&name=title" },
{ WITH_ETAG, "/meta?content=zimfile&name=description" }, { WITH_ETAG, "/meta?content=zimfile&name=description" },
{ WITH_ETAG, "/meta?content=zimfile&name=language" }, { WITH_ETAG, "/meta?content=zimfile&name=language" },