@sitecore-jss/sitecore-jss-nextjs 22.8.0-canary.5 → 22.8.0-canary.6

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.
@@ -69,6 +69,7 @@ class PersonalizeMiddleware extends middleware_1.MiddlewareBase {
69
69
  // Disable preflight caching to force revalidation on client-side navigation (personalization WILL be influenced).
70
70
  // Note the reason we don't move this any earlier in the middleware is that we would then be sacrificing performance for non-personalized pages.
71
71
  response.headers.set('x-middleware-cache', 'no-cache');
72
+ response.headers.set('Cache-Control', 'no-store, must-revalidate');
72
73
  return response;
73
74
  }
74
75
  yield this.initPersonalizeServer({
@@ -66,6 +66,7 @@ export class PersonalizeMiddleware extends MiddlewareBase {
66
66
  // Disable preflight caching to force revalidation on client-side navigation (personalization WILL be influenced).
67
67
  // Note the reason we don't move this any earlier in the middleware is that we would then be sacrificing performance for non-personalized pages.
68
68
  response.headers.set('x-middleware-cache', 'no-cache');
69
+ response.headers.set('Cache-Control', 'no-store, must-revalidate');
69
70
  return response;
70
71
  }
71
72
  yield this.initPersonalizeServer({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-nextjs",
3
- "version": "22.8.0-canary.5",
3
+ "version": "22.8.0-canary.6",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -72,16 +72,16 @@
72
72
  "react-dom": "^19.1.0"
73
73
  },
74
74
  "dependencies": {
75
- "@sitecore-jss/sitecore-jss": "22.8.0-canary.5",
76
- "@sitecore-jss/sitecore-jss-dev-tools": "22.8.0-canary.5",
77
- "@sitecore-jss/sitecore-jss-react": "22.8.0-canary.5",
75
+ "@sitecore-jss/sitecore-jss": "22.8.0-canary.6",
76
+ "@sitecore-jss/sitecore-jss-dev-tools": "22.8.0-canary.6",
77
+ "@sitecore-jss/sitecore-jss-react": "22.8.0-canary.6",
78
78
  "@vercel/kv": "^0.2.1",
79
79
  "regex-parser": "^2.2.11",
80
80
  "sync-disk-cache": "^2.1.0"
81
81
  },
82
82
  "description": "",
83
83
  "types": "types/index.d.ts",
84
- "gitHead": "d4f014efefea9724e16de66084691fab2a91d2e6",
84
+ "gitHead": "d279587daea000158ff275a1229b690281153f54",
85
85
  "files": [
86
86
  "dist",
87
87
  "types",