libkiwix/test
Veloman Yunkan b9f60ecfe9 Handling of cacheid when serving static resources
During static resource preprocessing and compilation their cacheid
values are embedded into libkiwix and can be accessed at runtime.

If a static resource is requsted without specifying any cacheid
it is served as dynamic content (with short TTL and the library id
used for the ETag, though using the cacheid for the ETag would
be better).

If a cacheid is supplied in the request it must match the cacheid of the
resource (otherwise a 404 Not Found error is returned) whereupon the
resource is served as immutable content.

Known issues:

- One issue is caused by the fact that some static resources don't get a
  cacheid; this is resolved in the next commit.

- Interaction of this change with the support for dynamically customizing
  static resources (via KIWIX_SERVE_CUSTOMIZED_RESOURCES env var) was
  not addressed.
2022-10-19 19:26:04 +04:00
..
data Introduced /content endpoint 2022-08-11 18:04:05 +04:00
book.cpp Deprecate methods on Book. 2022-01-12 18:07:46 +01:00
counterParsing.cpp Adapt kiwix-lib to the new libzim api. 2020-12-02 12:16:48 +01:00
httplib.h Fix warning in httplib. 2021-11-16 09:39:56 +01:00
kiwixserve.cpp Fix tests. 2020-01-20 17:00:18 +01:00
library.cpp Library::removeBookById() updates the revision 2022-10-19 19:26:04 +04:00
library_server.cpp Using /content/... URLs in OPDS output 2022-08-11 18:04:05 +04:00
lrucache.cpp uint is not defined on Windows 2022-06-10 11:21:35 +02:00
manager.cpp Manager::reload() 2021-11-30 18:20:27 +04:00
meson.build It's libkiwix, not kiwixlib 2022-09-11 16:05:25 +02:00
name_mapper.cpp Dropped Library::getBookBy*() non-const functions 2021-11-30 18:20:27 +04:00
opds_catalog.cpp OpdsCatalog::getSearchUrl() 2021-06-30 18:27:00 +02:00
pathTools.cpp Do not include posix header on Windows 2022-01-19 16:15:59 +01:00
regex.cpp Got rid of unused *pendToFirstOccurence() funcs 2022-09-21 15:52:26 +04:00
server.cpp Handling of cacheid when serving static resources 2022-10-19 19:26:04 +04:00
server_helper.cpp Introduce a pagination object to render search result. 2022-05-23 19:12:17 +02:00
server_search.cpp Dropped taskbarless test server 2022-09-21 17:40:46 +04:00
server_testing_tools.h Testing of the viewer settings endpoint 2022-09-21 17:42:54 +04:00
stringTools.cpp New unit-test stringTools.ICULanguageInfo 2022-07-07 16:13:49 +04:00
tagParsing.cpp Fix tests. 2020-01-20 17:00:18 +01:00