Skip to content

Menos invocaciones: estáticos sin Functions y /me en caché - #4

Merged
atrumin16 merged 1 commit into
mainfrom
perf/edge-costs
Oct 22, 2026
Merged

atrumin16 merged 1 commit into
mainfrom
perf/edge-costs

Conversation

@atrumin16

Copy link
Copy Markdown
Collaborator

Qué cambia

  • public/_routes.json: CSS, JS, fuentes, /assets/*, /brand/* e iconos se sirven sin pasar por el _middleware. Antes cada visita a la raíz invocaba Functions una vez por archivo. El middleware sigue corriendo en HTML y rutas desconocidas (redirecciones de host, envío a Labs y 404 de diagnóstico), así que el comportamiento no cambia. Las cabeceras de seguridad de los estáticos ya están en _headers.
  • atm-internal.js v2: guarda en localStorage 10 minutos si la sesión es interna, en vez de llamar a /api/auth/me en cada página. ?v=20261022b para saltar la caché de 4 h de la zona.

Pruebas

npm test → 13/13 OK.

@github-actions

Copy link
Copy Markdown

🛡️ Trujillo Systems & Operations Governance | Automated SRE Sentinel

Thank you, @atrumin16, for your contribution to the Trujillo Technology Ecosystem.

Your Pull Request has been cataloged under enterprise change-management specifications and queued for zero-trust policy compliance verification.

Verification Stage Policy / Standard Status
Identity & Provenance Verified Contributor Credentials VERIFIED
Zero-Trust Audit DNS Routing & Apex Gateway Validation RUNNING
Pipeline Governance Automated CI/CD Edge Deployment Verification ACTIVE

Note

All Pull Requests are governed automatically by trujillo-bot under continuous integration runbooks. A core maintainer will review this lifecycle event shortly.

@atrumin16
atrumin16 merged commit 3666c8a into main Oct 22, 2026
3 checks passed
@atrumin16
atrumin16 deleted the perf/edge-costs branch October 22, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant