Skip to content

Commit

Permalink
Merge pull request #216 from Flagsmith/chore/add-no-cache
Browse files Browse the repository at this point in the history
Add no-cache option
  • Loading branch information
kyle-ssg authored Mar 1, 2024
2 parents bfe5446 + 332ade6 commit 1d72411
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions flagsmith-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ const Flagsmith = class {
const options: RequestOptions = {
method: method || 'GET',
body,
// @ts-ignore next-js overrides fetch
cache: 'no-cache',
headers: {
'x-environment-key': `${environmentID}`
}
Expand Down
2 changes: 1 addition & 1 deletion lib/flagsmith-es/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagsmith-es",
"version": "3.23.0",
"version": "3.23.1",
"description": "Feature flagging to support continuous development. This is an esm equivalent of the standard flagsmith npm module.",
"main": "./index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion lib/flagsmith/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagsmith",
"version": "3.23.0",
"version": "3.23.1",
"description": "Feature flagging to support continuous development",
"main": "./index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion lib/react-native-flagsmith/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-flagsmith",
"version": "3.23.0",
"version": "3.23.1",
"description": "Feature flagging to support continuous development",
"main": "./index.js",
"repository": {
Expand Down

0 comments on commit 1d72411

Please sign in to comment.