Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • UrlBuilderArgs

Index

Properties

Optional cookieValueAsParam

cookieValueAsParam: string[]

When your GET endpoint depends on a cookie value and you are using a page cache like NGINX together with Redis, you could run into caching issues. Why? NGINX mostly uses the query parameters as cache key and also hits the cache even the cookie values changed. Two possible solutions are either to switch to a non-GET verb or using this property. This allows you to define a list of cookie keys which should be sent as _httpCookieInvalidate parameter and the cookie value base64-encoded.

location

options

options: { restNamespace: BaseOptions["restNamespace"]; restNonce?: BaseOptions["restNonce"]; restQuery?: BaseOptions["restQuery"]; restRecreateNonceEndpoint?: BaseOptions["restRecreateNonceEndpoint"]; restRoot: BaseOptions["restRoot"] }

Type declaration

  • restNamespace: BaseOptions["restNamespace"]
  • Optional restNonce?: BaseOptions["restNonce"]
  • Optional restQuery?: BaseOptions["restQuery"]
  • Optional restRecreateNonceEndpoint?: BaseOptions["restRecreateNonceEndpoint"]
  • restRoot: BaseOptions["restRoot"]

Optional params

Generated using TypeDoc