libkiwix/scripts
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
..
format_code.sh Fix: improvement to handle dirs with spaces 2022-10-01 21:15:50 +02:00
kiwix-compile-i18n Specify utf8 encoding when opening i18n resource file. 2022-05-17 18:36:35 +02:00
kiwix-compile-i18n.1 Automatic discovery of i18n resources 2022-05-09 15:12:16 +04:00
kiwix-compile-resources Handling of cacheid when serving static resources 2022-10-19 19:26:04 +04:00
kiwix-compile-resources.1 Have meson manage/install the kiwix-compile-resources.1 man page 2020-07-15 14:23:05 +02:00
kiwix-resources Handling of cacheid when serving static resources 2022-10-19 19:26:04 +04:00
meson.build Preprocessing of template resources 2022-05-02 20:37:22 +04:00