@timber-js/app 0.2.0-alpha.153 → 0.2.0-alpha.154
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/browser-entry/action-dispatch.d.ts.map +1 -1
- package/dist/server/internal.js +6 -2
- package/dist/server/internal.js.map +1 -1
- package/dist/server/pipeline-metadata.d.ts.map +1 -1
- package/dist/server/pipeline-phases.d.ts.map +1 -1
- package/dist/server/sitemap-handler.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/browser-entry/action-dispatch.ts +14 -0
- package/src/server/pipeline-metadata.ts +1 -0
- package/src/server/pipeline-phases.ts +4 -1
- package/src/server/sitemap-handler.ts +12 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-dispatch.d.ts","sourceRoot":"","sources":["../../../src/client/browser-entry/action-dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,wBAAgB,kBAAkB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"action-dispatch.d.ts","sourceRoot":"","sources":["../../../src/client/browser-entry/action-dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,wBAAgB,kBAAkB,IAAI,IAAI,CA6GzC"}
|
package/dist/server/internal.js
CHANGED
|
@@ -1786,7 +1786,8 @@ async function serveStaticMetadataFile(metaMatch) {
|
|
|
1786
1786
|
const body = await readFile(file.filePath);
|
|
1787
1787
|
const headers = {
|
|
1788
1788
|
"Content-Type": isText ? `${contentType}; charset=utf-8` : contentType,
|
|
1789
|
-
"Content-Length": String(body.byteLength)
|
|
1789
|
+
"Content-Length": String(body.byteLength),
|
|
1790
|
+
"Cache-Control": "public, max-age=14400, must-revalidate"
|
|
1790
1791
|
};
|
|
1791
1792
|
return new Response(body, {
|
|
1792
1793
|
status: 200,
|
|
@@ -2211,7 +2212,10 @@ async function handleRequest(config, req, method, path, pathIsCanonical) {
|
|
|
2211
2212
|
else body = String(handlerResult);
|
|
2212
2213
|
return new Response(body, {
|
|
2213
2214
|
status: 200,
|
|
2214
|
-
headers: {
|
|
2215
|
+
headers: {
|
|
2216
|
+
"Content-Type": `${contentType}; charset=utf-8`,
|
|
2217
|
+
"Cache-Control": "public, max-age=14400, must-revalidate"
|
|
2218
|
+
}
|
|
2215
2219
|
});
|
|
2216
2220
|
} catch (error) {
|
|
2217
2221
|
if (error instanceof RedirectSignal) return new Response(null, {
|