Solucionar problemas de PWA y cache
Some checks failed
build-and-deploy / build-and-deploy (push) Failing after 11s
Some checks failed
build-and-deploy / build-and-deploy (push) Failing after 11s
- Agregar manifest.json a rutas públicas de Traefik (anteriormente solo estaba manifest.webmanifest) - Cambiar estrategia de cache del Service Worker de cache-first a estrategia inteligente: * Archivos de build (/assets/): Network-first con cache fallback * HTML: Network-first siempre para obtener última versión * Recursos estáticos (iconos, manifest): Cache-first (no cambian) - Incrementar versión de cache de v2 a v3 para forzar limpieza - Evitar redirecciones a Authentik para archivos manifest Esto soluciona: - Error CORS en manifest.json (ya no redirige a Authentik) - Problemas de cache que requerían limpiar datos del navegador - Archivos desactualizados servidos desde cache
This commit is contained in:
@@ -37,7 +37,7 @@ services:
|
||||
|
||||
# Router 1: Público (assets, manifest, icons) - SIN autenticación - ALTA PRIORIDAD
|
||||
# NOTA: /outpost.goauthentik.io NO debe estar aquí, lo maneja el middleware de Authentik
|
||||
- "traefik.http.routers.wifi-nucleoriofrio-public.rule=Host(`wifi.nucleoriofrio.com`) && (PathPrefix(`/assets`) || PathPrefix(`/.well-known`) || PathPrefix(`/icons`) || Path(`/manifest.webmanifest`) || Path(`/favicon.ico`) || Path(`/vite.svg`) || Path(`/sw.js`))"
|
||||
- "traefik.http.routers.wifi-nucleoriofrio-public.rule=Host(`wifi.nucleoriofrio.com`) && (PathPrefix(`/assets`) || PathPrefix(`/.well-known`) || PathPrefix(`/icons`) || Path(`/manifest.webmanifest`) || Path(`/manifest.json`) || Path(`/favicon.ico`) || Path(`/vite.svg`) || Path(`/sw.js`))"
|
||||
- "traefik.http.routers.wifi-nucleoriofrio-public.entrypoints=websecure"
|
||||
- "traefik.http.routers.wifi-nucleoriofrio-public.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.wifi-nucleoriofrio-public.service=wifi-nucleoriofrio-service"
|
||||
|
||||
Reference in New Issue
Block a user