Skip to content

prescriptive caching headers for conditional GET support #246

Description

@catkins-miso

In order for local caching and conditional GET to work properly with the snapshot endpoints, I believe a TROLIE implementation needs to return the following response headers:

  • MUST have the same Weak ETag header for all representations of the current version of the snapshot. CONSIDER using the period, e.g., ETag: W/"2025-09-17T01:00:00-0400"
  • MUST use Caching directives:
    • Vary: Accept, Accept-Encoding for the media type and compression requested
    • Cache-Control: private, no-cache because the monitoring set is implicit in the request

If a snapshot request includes the ?monitoring-set=... query parameter, the response COULD have Cache-Control: public, no-cache. This would allow a reverse proxy to be setup as a caching intermediary for the client.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DiscussionInquiries that we want to have a record of for future reference. Can turn into "Spec Change" issues.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions