Skip to content

When rewriting cache.config in YAML, make it not additive. #7701

Open

Description

@rob05c

cache.config is currently additive.

https://docs.trafficserver.apache.org/en/9.0.x/admin-guide/files/cache.config.en.html#matching-multiple-rules

When multiple rules are specified in cache.config, Traffic Server will check all of them in order for each request. Thus, two rules which match the same request but have conflicting actions will result in their actions being compounded. In other words, Traffic Server does not stop on the first match.

This is highly unintuitive and unexpected. Furthermore, because the match logic isn't very powerful, it's not possible to do certain things.

I'm making this issue as a placeholder so we don't forget: when we rewrite it in YAML, we should make it not additive, or possibly extend the matching capabilities to be more powerful, so things like suffix=jpeg and suffix!=jpeg are possible, or possibly both.

Activity

  1. rob05c commented on Apr 12, 2021

    @rob05c
    MemberAuthor

    See #1329

  2. github-actions commented on Mar 8, 2023

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

  3. added 2 commits that reference this issue on Jul 30, 2026
    cc239f8
    ce8a0e7
  4. added a commit that references this issue on Oct 2, 2026
  5. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions