@tramvai/module-server 2.100.0 → 2.101.0
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/lib/server/error.es.js +2 -2
- package/lib/server/error.js +2 -2
- package/package.json +14 -14
package/lib/server/error.es.js
CHANGED
|
@@ -46,7 +46,7 @@ More information about redirects - https://tramvai.dev/docs/features/routing/red
|
|
|
46
46
|
error,
|
|
47
47
|
requestInfo,
|
|
48
48
|
});
|
|
49
|
-
reply.header('cache-control', 'no-
|
|
49
|
+
reply.header('cache-control', 'no-store, no-cache, must-revalidate');
|
|
50
50
|
reply.redirect(error.httpStatus || 307, error.nextUrl);
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -144,7 +144,7 @@ ${RootErrorBoundary !== null
|
|
|
144
144
|
});
|
|
145
145
|
reply.header('Content-Type', 'text/html; charset=utf-8');
|
|
146
146
|
reply.header('Content-Length', Buffer.byteLength(body, 'utf8'));
|
|
147
|
-
reply.header('Cache-Control', 'no-
|
|
147
|
+
reply.header('Cache-Control', 'no-store, no-cache, must-revalidate');
|
|
148
148
|
return body;
|
|
149
149
|
}
|
|
150
150
|
catch (e) {
|
package/lib/server/error.js
CHANGED
|
@@ -54,7 +54,7 @@ More information about redirects - https://tramvai.dev/docs/features/routing/red
|
|
|
54
54
|
error,
|
|
55
55
|
requestInfo,
|
|
56
56
|
});
|
|
57
|
-
reply.header('cache-control', 'no-
|
|
57
|
+
reply.header('cache-control', 'no-store, no-cache, must-revalidate');
|
|
58
58
|
reply.redirect(error.httpStatus || 307, error.nextUrl);
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
@@ -152,7 +152,7 @@ ${RootErrorBoundary !== null
|
|
|
152
152
|
});
|
|
153
153
|
reply.header('Content-Type', 'text/html; charset=utf-8');
|
|
154
154
|
reply.header('Content-Length', Buffer.byteLength(body, 'utf8'));
|
|
155
|
-
reply.header('Cache-Control', 'no-
|
|
155
|
+
reply.header('Cache-Control', 'no-store, no-cache, must-revalidate');
|
|
156
156
|
return body;
|
|
157
157
|
}
|
|
158
158
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.101.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"@tinkoff/monkeypatch": "2.0.5",
|
|
26
26
|
"@tinkoff/terminus": "0.1.8",
|
|
27
27
|
"@tinkoff/url": "0.8.6",
|
|
28
|
-
"@tramvai/module-cache-warmup": "2.
|
|
29
|
-
"@tramvai/module-metrics": "2.
|
|
30
|
-
"@tramvai/papi": "2.
|
|
31
|
-
"@tramvai/tokens-server": "2.
|
|
32
|
-
"@tramvai/tokens-server-private": "2.
|
|
28
|
+
"@tramvai/module-cache-warmup": "2.101.0",
|
|
29
|
+
"@tramvai/module-metrics": "2.101.0",
|
|
30
|
+
"@tramvai/papi": "2.101.0",
|
|
31
|
+
"@tramvai/tokens-server": "2.101.0",
|
|
32
|
+
"@tramvai/tokens-server-private": "2.101.0",
|
|
33
33
|
"fastify": "^4.14.1",
|
|
34
34
|
"@fastify/cookie": "^8.3.0",
|
|
35
35
|
"@fastify/compress": "^6.2.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@tinkoff/dippy": "0.8.15",
|
|
43
43
|
"@tinkoff/utils": "^2.1.2",
|
|
44
|
-
"@tramvai/cli": "2.
|
|
45
|
-
"@tramvai/core": "2.
|
|
46
|
-
"@tramvai/react": "2.
|
|
47
|
-
"@tramvai/module-common": "2.
|
|
48
|
-
"@tramvai/module-environment": "2.
|
|
49
|
-
"@tramvai/tokens-common": "2.
|
|
50
|
-
"@tramvai/tokens-core-private": "2.
|
|
51
|
-
"@tramvai/tokens-render": "2.
|
|
44
|
+
"@tramvai/cli": "2.101.0",
|
|
45
|
+
"@tramvai/core": "2.101.0",
|
|
46
|
+
"@tramvai/react": "2.101.0",
|
|
47
|
+
"@tramvai/module-common": "2.101.0",
|
|
48
|
+
"@tramvai/module-environment": "2.101.0",
|
|
49
|
+
"@tramvai/tokens-common": "2.101.0",
|
|
50
|
+
"@tramvai/tokens-core-private": "2.101.0",
|
|
51
|
+
"@tramvai/tokens-render": "2.101.0",
|
|
52
52
|
"react": ">=16.14.0",
|
|
53
53
|
"react-dom": ">=16.14.0",
|
|
54
54
|
"tslib": "^2.4.0"
|