Commit 8b20cae
fix: respect no-cache/no-store TTL=0 from parseCacheTTL
parseCacheTTL returns 0 to signal "do not cache" (no-cache, no-store,
or expired Expires header). The ttl <= 0 guard in endorsements.go and
cosign.go was overriding this with the default TTL, causing responses
that should not be cached to be cached. Changed to ttl < 0 so only
truly invalid values get the fallback.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 97ef623 commit 8b20cae
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments