Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I'm breaking this proposal up into three sections, since it involves pretty invasive changes to not only the core, but also the elimination of an experimental API.

API additions

The followin following APIs would be added:

Code Block
  TSReturnCode TSHttpCacheKeySet(void *data, size_t len);
  TSReturnCode TSHttpCacheKeyUpdate(void *data, size_t len);

...

  • *# Explicitly set via a plugin using new APIs.
    1. Implicitly set via the stale-while-revalidate Cache-Control: header as specific in RFC5861. This could be overriden overridden by a plugin above.
    2. Defaulted via records.config and/or hosting.config settings. If in records.config, it could be configured per-remap via conf_remap plugin.
  • Allow the HTTP State Machine to restart the cache-sm any number of times (not just once or twice). This requires both changes to the core, and additions to the APIs. It's a more generic implementation to the current 2nd cache state machine.

...