Skip to content
Playground(another site)

bynk.actor.signed_cookie_public_cache

Error A @cache(scope: public) route is guarded by a SignedCookie actor.

A route guarded by a session cookie answers one user, so a shared cache must not store its response, or it would serve one user's answer to another. Use scope: private, which lets only the browser keep it, or drop @cache.

Example

@cache(maxAge: 5.minutes, scope: public) // ✗ a shared cache would replay it
@cache(maxAge: 5.minutes, scope: private) // ✓

In the Book

See also

  • Every code in its category, Actors, on the diagnostic index.
  • bynk explain bynk.actor.signed_cookie_public_cache shows the same from the installed toolchain, without a network.