⚡️ Caché HTTP y estáticos fuera del middleware

- ServeEmbedded envía ETag (del contenido) y `Cache-Control: no-cache`,
  y responde 304 sin cuerpo si el recurso no ha cambiado.
- Los archivos servidos desde disco añaden también `no-cache`.
- Nuevo `Extension::configure_static_files()`: sus rutas se montan tras
  el middleware y no resuelven la sesión. Movidos los estáticos del
  núcleo, Bootsier, Aliner y HTMX.
This commit is contained in:
Manuel Cillero 2026-10-12 09:54:47 +02:00
parent 98a5768406
commit 7793eb796c
12 changed files with 281 additions and 66 deletions

View file

@ -106,7 +106,7 @@ impl Extension for Bootsier {
Some(&Self)
}
fn configure_router(&self, router: Router) -> Router {
fn configure_static_files(&self, router: Router) -> Router {
let base = &config::SETTINGS.dev.bootsier_static_dir;
let subdir = |s: &str| {
if base.is_empty() {