cf-service-sdk 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +8 -0
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -28,6 +28,14 @@ class CloudForgeClient {
|
|
|
28
28
|
// HTTP link
|
|
29
29
|
const httpLink = (0, client_1.createHttpLink)({
|
|
30
30
|
uri: apiUrl,
|
|
31
|
+
fetchOptions: {
|
|
32
|
+
cache: 'no-store', // Disable browser cache
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
|
36
|
+
'Pragma': 'no-cache',
|
|
37
|
+
'Expires': '0',
|
|
38
|
+
},
|
|
31
39
|
});
|
|
32
40
|
// Auth link for adding the token to headers
|
|
33
41
|
const authLink = (0, context_1.setContext)((_, { headers }) => {
|