Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
ci: use private cachce header on files to prevent leaks
Brad Barbin42147e3405f7
diff --git a/apps/carbon/app/routes/file+/preview+/$bucket.$.tsx b/apps/carbon/app/routes/file+/preview+/$bucket.$.tsxindex f9620ec554..7a9a291537 100644--- a/apps/carbon/app/routes/file+/preview+/$bucket.$.tsx+++ b/apps/carbon/app/routes/file+/preview+/$bucket.$.tsx@@ -57,7 +57,7 @@ export let loader = async ({ request, params }: LoaderFunctionArgs) => {const headers = new Headers({"Content-Type": contentType,- "Cache-Control": "public, max-age=31536000, immutable", // Cache for a year+ "Cache-Control": "private, max-age=31536000, immutable", // Cache for a year});return new Response(fileData, { status: 200, headers });};diff --git a/apps/mes/app/routes/file+/preview+/$bucket.$.tsx b/apps/mes/app/routes/file+/preview+/$bucket.$.tsxindex 27ab2635f4..18f105fdc4 100644--- a/apps/mes/app/routes/file+/preview+/$bucket.$.tsx+++ b/apps/mes/app/routes/file+/preview+/$bucket.$.tsx@@ -43,7 +43,7 @@ export let loader = async ({ request, params }: LoaderFunctionArgs) => {const headers = new Headers({"Content-Type": contentType,- "Cache-Control": "public, max-age=31536000", // Cache for a year+ "Cache-Control": "private, max-age=31536000, immutable", // Cache for a year});return new Response(result.data, { status: 200, headers });};