libkiwix/src/server
Veloman Yunkan 3b9f28b2b5 Applied cache-id to search_results.css
The story of search_results.css

static/skin/search_results.css was extracted from
static/templates/no_search_result.html before the latter was dropped.

static/templates/no_search_result.html in turn seems to be a copied and
edited version of static/templates/search_result.html.

In the context of exploratory work on the internationalization of
kiwix-serve (PR #679) I noticed duplication of inline CSS across those
two templates and intended to eliminated it. That goal was not fully
accomplished (static/templates/search_result.html remained untouched)
because by that time PR #679 grew too big and the efforts were diverted
into splitting it into smaller ones. Thus search_results.css slipped
into one of those small PRs, without making much sense because nothing
really justifies preserving custom CSS in the "Fulltext search unavailable"
error page.

At the same time, it served as the only case where a link to a cacheable
resource is generated in C++ code (rather than found in a template).
This poses certain problems to the handling of cache-ids. A workaround
is to expel the URL into a template so that it is processed by
`kiwix-resources`. This commit merely demonstrates that solution. But
whether it should be preserved (or rather the "Fulltext search
unavailable" page should be deprived of CSS) is questionable.
2022-05-02 20:37:22 +04:00
..
byte_range.cpp Include missing `algorithm` header. 2020-06-10 15:27:51 +02:00
byte_range.h Fixed a comment 2020-05-26 14:04:18 +04:00
etag.cpp Handling of If-None-Match conditional requests 2020-05-14 17:01:22 +04:00
etag.h Handling of If-None-Match conditional requests 2020-05-14 17:01:22 +04:00
i18n.cpp Enter ParameterizedMessage 2022-04-13 16:40:20 +02:00
i18n.h Internationalized "Go to the main page" button 2022-04-13 16:40:20 +02:00
internalServer.cpp Applied cache-id to search_results.css 2022-05-02 20:37:22 +04:00
internalServer.h Got rid of Response::build_500() 2022-04-04 18:35:20 +02:00
internalServer_catalog_v2.cpp More uses of HTTP404HtmlResponse 2022-03-28 14:56:40 +02:00
request_context.cpp [SERVER] Support gzip encoding instead of deflate. 2022-04-27 18:23:38 +02:00
request_context.h [SERVER] Support gzip encoding instead of deflate. 2022-04-27 18:23:38 +02:00
response.cpp Do not compress content smaller than 1400 Bytes 2022-04-27 18:23:39 +02:00
response.h "Go to welcome page" is internationalized 2022-04-13 16:40:20 +02:00