Define global allowQuery / varies in nitro config
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 40/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend, performance
Línea de trabajo
The feature touches the cache configuration in nitro.config.ts and the cachedHandler options, so start with how cache.defaults is read and merged with per-handler allowQuery and varies. The docs at https://nitro.build/docs/cache#global-options are the reference for current behaviour. Done means a global default can be set and a handler's cache key includes it, with the merge rule documented.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the feature
It would be nice if query params can be set in nitro.config.ts, so these query params always vary the cache key and reach every handler.
E.g. if every route takes a locale query param ?locale=fr, locale could be added globally so one does not have to add it to every cachedHandler (and possibly forgets it).
The same example when using Accept-Language header instead of query param: accept-language could be added to global varies, so one does not have to add it to every cachedHandler (and possibly forgets it).
Additional information
Apparently nitro config already allows for cache.defaults to be set but the docs don't say whether cachedHandlers allowQuery replaces or merges with the default: https://nitro.build/docs/cache#global-options
- Lenguaje dominante
- TypeScript
- Estrellas
- 11.5k
- Forks
- 968
- Merge medio
- 4 d 9 h
- PR fusionados (30 d)
- 64
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nitrojs/nitro
-
pending triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
Los mantenedores suelen responder en 2 días
-
cloudflare: `nitro deploy` fails when a parent directory has a Wrangler configPosiblemente ocupada @draarivpatel-ui la tomó hace 13 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 2 días
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
pending triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
nitrojs/nitro#5205 · 1 reacción ·
Los mantenedores suelen responder en 2 días
Todos los issues de nitrojs/nitro
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ranxianglei/billion-context#8319 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
JimLiu/open-artifact#126 ·
-
Claude Code: replace stub has no cut cue, a 6128 B Bash output reads as the one line `END6000`Abiertobug repro-ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
mksglu/context-mode#1454 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
laststance/design-world#98 ·
Los mantenedores suelen responder en 1 día
-
Add: KCM True crimeAbiertoapproved check:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día