You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cache: warn on inject() without vary(), and decide how to handle a non-literal <c-cache> key #763
Two gaps in how <c-cache> helps authors key a cached render correctly.
inject() without vary(). A cached render that reads a provided value with inject() but does not declare it with vary() stores one value and serves it on later renders, even when the provided value differs. Citry gives no hint. Proposal: warn in development mode. This needs Citry to track which cached render did the reading, which it does not do today.
A key that is not a literal. When the key is an expression, two templates (or two branches) can produce the same key for different bodies. Options:
a citry check rule, which adds a code to the public diagnostics list, or
adding a fingerprint of the cached body to the key, which changes how keys are shared between templates today.
Activity