Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP1universalStack: universal
cachinghttpperformance
Use a stable cache key, not a unique-per-request param
Don't bust caching with a fresh value on every request; change the cache-key param only when the underlying inputs actually change.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetypescript
| 1 | const url = `/api/data?cacheBust=${Date.now()}`; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | // version bumps only when instruments change |
| 2 | const url = `/api/data?v=${instrumentsVersion}`; |
Explanation (EN)
Objašnjenje (HR)