Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions public/.well-known/security.txt
Original file line number Diff line number Diff line change
@@ -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
17 changes: 15 additions & 2 deletions public/_headers
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
# 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

/*
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
Loading