From df7299a9ba843cadb34d5460b35b4604c3e2bae3 Mon Sep 17 00:00:00 2001 From: Marco Anarmo Date: Tue, 6 Oct 2026 18:50:16 +0000 Subject: [PATCH 1/2] =?UTF-8?q?perf:=20cach=C3=A9=20corta=20con=20revalida?= =?UTF-8?q?ci=C3=B3n=20para=20las=20tarjetas=20y=20Permissions-Policy;=20q?= =?UTF-8?q?uita=20la=20regla=20de=20/og/,=20que=20ya=20no=20existe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/_headers | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/public/_headers b/public/_headers index 7d43412..823b4ea 100644 --- a/public/_headers +++ b/public/_headers @@ -1,3 +1,6 @@ +# Cabeceras de Cloudflare Pages. HSTS se configura en el panel de Cloudflare (SSL/TLS → Edge Certificates), no aquí. + +# JS, CSS y fuentes de Astro: el nombre lleva un hash, así que no cambian nunca /_astro/* Cache-Control: public, max-age=31536000, immutable @@ -5,6 +8,16 @@ X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin X-Frame-Options: DENY + Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=() -/og/* - Cache-Control: public, max-age=86400 +# Tarjetas para compartir: la URL no cambia entre builds, así que caché corta y se refresca en segundo plano +/tarjetas/* + Cache-Control: public, max-age=3600, stale-while-revalidate=86400 +/ca/tarjetas/* + Cache-Control: public, max-age=3600, stale-while-revalidate=86400 +/eu/tarjetas/* + Cache-Control: public, max-age=3600, stale-while-revalidate=86400 +/gl/tarjetas/* + Cache-Control: public, max-age=3600, stale-while-revalidate=86400 +/en/tarjetas/* + Cache-Control: public, max-age=3600, stale-while-revalidate=86400 From 3cbf490287e93de36d77a52c8b3d3bd18f0bf6dc Mon Sep 17 00:00:00 2001 From: Marco Anarmo Date: Tue, 6 Oct 2026 18:50:16 +0000 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20a=C3=B1ade=20security.txt=20con=20?= =?UTF-8?q?el=20contacto=20y=20la=20pol=C3=ADtica=20de=20seguridad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.well-known/security.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 public/.well-known/security.txt diff --git a/public/.well-known/security.txt b/public/.well-known/security.txt new file mode 100644 index 0000000..7e0c55a --- /dev/null +++ b/public/.well-known/security.txt @@ -0,0 +1,8 @@ +# Cómo avisar de un problema de seguridad o de un dato personal que no debería publicarse. +# Renovar «Expires» antes de que caduque (como mucho, un año vista). +Contact: mailto:ayuda@congresoabierto.org +Contact: https://github.com/MarcoAnarmo/CongresoAbierto/security/advisories/new +Expires: 2027-10-06T00:00:00.000Z +Preferred-Languages: es, ca, eu, gl, en +Canonical: https://congresoabierto.org/.well-known/security.txt +Policy: https://github.com/MarcoAnarmo/CongresoAbierto/blob/main/SECURITY.md