You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content-fetch.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,6 @@ import { isHttps } from './utils'
49
49
* @param {string} config.guid - The guid that represents your instance.
50
50
* @param {string} config.apiKey - The secret token that represents your application.
51
51
* @param {boolean} [config.isPreview] - If your access token is for preview, then set this to true.
52
-
* @param {Object} [config.caching] - Optional Caching options. Caching is disabled by default.
53
-
* @param {number} [config.caching.maxAge] - In miliseconds. Default value is *0* (disabled). Recommeded value is *180000* (3 mins). Requests are cached in memory only (node or browser).
54
52
* @param {string} [config.baseUrl] - Optionally override the default API Base Url.
55
53
* @return {AgilityFetch.Client}
56
54
* @example
@@ -71,12 +69,14 @@ function getApi(config) {
71
69
72
70
functionvalidateConfigParams(configParams){
73
71
72
+
if(configParams.caching){
73
+
console.warn('The built-in caching has been deprecated from @agility/content-fetch as of version `1.1.0`. The `caching` parameter will have no effect.');
0 commit comments