@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.
@@ -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,CA+FzC"}
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"}
@@ -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: { "Content-Type": `${contentType}; charset=utf-8` }
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, {