From c835b5fb2da8647e2dad26f94e7bffd00f1ad115 Mon Sep 17 00:00:00 2001 From: Juraj Uhlar Date: Mon, 20 Apr 2026 12:33:27 +0100 Subject: [PATCH] docs: document caching default change in v3 Document that the default caching strategy has changed from sessionStorage to no caching, aligned with the underlying JS agent v4 default. Add example showing how to enable caching for users who want to preserve previous behavior. --- CHANGELOG.md | 1 + README.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf9f22d0..32747d63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### ⚠ BREAKING CHANGES * The SDK api has changed to match changes introduced in V4 version of the agent. +* The default caching strategy has changed from `sessionStorage` caching to **no caching by default**, aligned with the underlying [JavaScript agent v4 default](https://docs.fingerprint.com/reference/js-agent-v4-start-function#cache). ### Features diff --git a/README.md b/README.md index ca57ef4f..8581e90a 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,8 @@ To get your API key and get started, see the [Fingerprint Quick Start Guide](htt - Set `apiKey` to your Fingerprint [Public API Key](https://dashboard.fingerprint.com/api-keys). - Set `region` if you have chosen a non-global [region](https://docs.fingerprint.com/docs/regions) during registration. - Set `endpoint` if you are using [one of our proxy integrations to increase accuracy](https://docs.fingerprint.com/docs/protecting-the-javascript-agent-from-adblockers) and effectiveness of visitor identification. -- You can use all the [start options](https://docs.fingerprint.com/reference/js-agent-v4-start-function#start-options) available in the JavaScript agent `load` function. +- You can use all the [start options](https://docs.fingerprint.com/reference/js-agent-v4-start-function#start-options) available in the JavaScript agent `start()` function. +- Caching is disabled by default. To enable caching, pass the JavaScript agent [`cache` start option](https://docs.fingerprint.com/reference/js-agent-v4-start-function#cache). ```jsx // src/index.js @@ -95,6 +96,7 @@ const root = ReactDOM.createRoot(document.getElementById('app')) root.render(