bynk.http.cache_bad_scope
Error A @cache annotation's scope is not public or private.
scope says who may store a cached response: private means the user's own browser only, and public also lets a shared cache, such as a CDN, keep it. Those are the only two values, written bare rather than as strings, so shared or "public" is refused. Choose one, or omit scope for private. Use public only for a response that is the same for everyone: bynk.http.cache_public_reads_cookies.
Example
@cache(maxAge: 5.minutes, scope: shared) // ✗ `public` or `private`on GET("/links") () -> Effect[HttpResult[String]] by v: Visitor { … }
@cache(maxAge: 5.minutes, scope: public) // ✓In the Book
See also
- Every code in its category, HTTP, on the diagnostic index.
bynk explain bynk.http.cache_bad_scopeshows the same from the installed toolchain, without a network.