Interface: FetchOptions
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:71
The options supported by the default fetcher method
Properties
alternativePreviewAuthorizationHeader?
optionalalternativePreviewAuthorizationHeader:boolean
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:94
Flag to enable using the alternative authorization header.
This can be useful if you have separate authentication on your project.
bearerToken?
optionalbearerToken:string
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:80
The authentication token to use for the request.
burstCache?
optionalburstCache:boolean
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:99
Whether to burst cache by appending a timestamp to the query
cache?
optionalcache:"no-store"|"force-cache"
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:104
Cache option
headers?
optionalheaders:Record<string,unknown>
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:109
Headers to sent to fetch
next?
optionalnext:NextJSFetchOptions
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:111
previewToken?
optionalpreviewToken:string
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:87
The preview token to use for the request.
These are tokens issued by the HeadstartWP plugin and is used to authenticate previews
throwIfNotFound
throwIfNotFound:
boolean
Defined in: packages/core/src/data/strategies/AbstractFetchStrategy.ts:75
Whether to thrown an exception if data is not found.