mirror of https://github.com/kiwix/libkiwix.git
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. |
||
---|---|---|
.. | ||
server | ||
tools | ||
aria2.cpp | ||
aria2.h | ||
book.cpp | ||
bookmark.cpp | ||
config.h.in | ||
downloader.cpp | ||
kiwixserve.cpp | ||
library.cpp | ||
libxml_dumper.cpp | ||
manager.cpp | ||
meson.build | ||
microhttpd_wrapper.h | ||
name_mapper.cpp | ||
opds_catalog.cpp | ||
opds_dumper.cpp | ||
search_renderer.cpp | ||
server.cpp | ||
subprocess.cpp | ||
subprocess.h | ||
subprocess_unix.cpp | ||
subprocess_unix.h | ||
subprocess_windows.cpp | ||
subprocess_windows.h | ||
version.cpp | ||
xmlrpc.h |