Repository navigation
Chore: cabeceras cache security txt - #31
Merged
Merged
Conversation
…licy; quita la regla de /og/, que ya no existe
Deploying congresoabierto with
|
| Latest commit: |
3cbf490
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2d024f0c.congresoabierto.pages.dev |
| Branch Preview URL: | https://chore-cabeceras-cache-securi.congresoabierto.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ajustes de cabeceras y seguridad para Cloudflare Pages.
_headers: las tarjetas para compartir (/tarjetas/*y/{ca,eu,gl,en}/tarjetas/*) pasan a tenermax-age=3600, stale-while-revalidate=86400. Antes no tenían caché en el navegador. Se quita la regla de/og/*, que ya no existe desde que las tarjetas se movieron._headers: se añadePermissions-Policy, que desactiva cámara, micrófono, ubicación, pagos y USB. La web no los usa.public/.well-known/security.txt(RFC 9116): contacto por correo y GitHub, idiomas, enlace canónico y política (SECURITY.md). Caduca el 6 oct 2027 y hay que renovarlo antes.HSTS se configura en el panel de Cloudflare, no en
_headers.Comprobado con
astro build: 1781 páginas.dist/_headersydist/.well-known/security.txtsalen tal cual.