mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
add tip for public data and session variables
add tip for public data and session variables in docs PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9784 GitOrigin-RevId: 5d8670ee3b506d9141b96c1d894fbb1dffa20db7
This commit is contained in:
parent
f2b46f677e
commit
f145de2bb9
@ -172,6 +172,14 @@ For example, if a JWT resolves to say `x-hasura-user-id` and `x-hasura-org-id` s
|
||||
uses the `x-hasura-user-id` in the permissions, then only the role and `x-hasura-user-id` would be used to compute the
|
||||
cache key.
|
||||
|
||||
|
||||
:::tip Public data and session variables
|
||||
|
||||
Public data usually do not have any permission rules and hence are easily reused for all requests (irrespective of user).
|
||||
This data can be used in landing pages, item listings, news feeds, etc.
|
||||
|
||||
:::
|
||||
|
||||
### Request headers
|
||||
Request headers (ignoring `x-request-id` header) are added to the cache key computation, when executing Remote Schema
|
||||
or Action queries, if they have `forward_client_headers` set to `true`.
|
||||
|
Loading…
Reference in New Issue
Block a user