Baseflow / Baseflow/flutter_cache_manager

Cache 204 - No content

Ouverte
#333 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
type: enhancement
Langage dominant
Dart
Étoiles
809
Forks
510
Merge moyen
6 min
PR mergées (30 j)
1

Description

## 💬 Questions and Help

If I understand the code correctly currently only 200 and 202 status codes are added to the cache.

https://github.com/Baseflow/flutter_cache_manager/blob/c7881776325441f3900277499615981c40d12284/flutter_cache_manager/lib/src/web/web_helper.dart#L23-L24

In my case I have a image API endpoint which *tries* to generate a image/logo/etc. based on a user-provided website URL. Since the user input could just as well be an internal URL or just broken, it is perfectly fine for the endpoint to return a 404 response. Right now this is not cached on the client side but requested every time.

Is this the intended behavior, or any way to cache non-existent URLs?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Lisez lib/src/web/web_helper.dart aux lignes indiquées par le lien afin de confirmer quels codes d’état HTTP sont actuellement mis en cache. Clarifiez si le comportement demandé couvre 204, 404 ou d’autres réponses sans succès, puis vérifiez que le comportement sélectionné empêche les requêtes répétées pour le cas d’image API signalé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
dart
Domaine
mobile-dev, performance
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.