libkiwix/src
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
..
server Handling of cacheid when serving static resources 2022-10-19 19:26:04 +04:00
tools Got rid of unused *pendToFirstOccurence() funcs 2022-09-21 15:52:26 +04:00
aria2.cpp Introduce kiwix::fileReadable 2022-01-05 20:16:38 +05:30
aria2.h Make aria2 secret a random value 2022-01-03 09:35:04 +01:00
book.cpp Remove libzim's wrapper. 2022-07-02 16:33:32 +02:00
bookmark.cpp Add bookmarks support. 2018-12-02 15:47:29 +01:00
config.h.in Better libkiwix version variable name 2021-12-13 18:22:40 +01:00
downloader.cpp Better error printing. 2020-08-28 15:27:03 +02:00
kiwixserve.cpp Move back used helper functions to the public API. 2021-07-07 14:43:13 +02:00
library.cpp Library::removeBookById() updates the revision 2022-10-19 19:26:04 +04:00
libxml_dumper.cpp Deprecate methods on Book. 2022-01-12 18:07:46 +01:00
manager.cpp Manager::reload() also removes books from Library 2021-11-30 18:20:27 +04:00
meson.build It's libkiwix, not kiwixlib 2022-09-11 16:05:25 +02:00
microhttpd_wrapper.h Fix compilation with libmicrohttpd v0.97.1 2020-07-08 14:42:46 +02:00
name_mapper.cpp Renamed NameMapperProxy -> UpdatableNameMapper 2021-11-30 18:20:27 +04:00
opds_catalog.cpp OpdsCatalog::getSearchUrl() 2021-06-30 18:27:00 +02:00
opds_dumper.cpp Eliminated the endpointRoot parameter 2022-10-06 14:02:50 +04:00
search_renderer.cpp Fixed search results for kiwix-desktop 2022-09-26 13:11:25 +04:00
server.cpp Remove libzim's wrapper. 2022-07-02 16:33:32 +02:00
subprocess.cpp Do not add NULL at end of commandLine on Windows. 2018-10-31 13:56:42 +01:00
subprocess.h Do not add NULL at end of commandLine on Windows. 2018-10-31 13:56:42 +01:00
subprocess_unix.cpp Use c++11 std::thread instead of pthread. 2021-01-26 17:53:25 +01:00
subprocess_unix.h Use c++11 std::thread instead of pthread. 2021-01-26 17:53:25 +01:00
subprocess_windows.cpp Wait for waitingThread to exit before destroying the subprocess memory. 2020-08-26 12:26:04 +02:00
subprocess_windows.h Wait for waitingThread to exit before destroying the subprocess memory. 2020-08-26 12:26:04 +02:00
version.cpp New kiwix::getVersions() and printVersions() 2022-01-02 12:22:11 +01:00
xmlrpc.h Add missing include 2020-10-07 18:43:57 +02:00