Baseflow / Baseflow/flutter_cache_manager

FirebaseCacheManager uses DownloadUrl which has a token in the url defeating cache

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

Description

[FirebaseCacheManager](https://github.com/Baseflow/flutter_cache_manager/blob/develop/flutter_cache_manager_firebase/lib/src/firebase_http_file_service.dart#L36) uses the `ref.getDownloadUrl()` which typically returns a url with a dynamic access token in the query string of the URL. Doesn't that mostly defeat the purpose of the cache, assuming that the key of the file in the cache is tho whole url including the token?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start in flutter_cache_manager_firebase/lib/src/firebase_http_file_service.dart at the referenced line, then trace how the download URL becomes the cache key. Check whether changing Firebase access tokens creates separate cached entries; done means the cache behavior is verified and the reported concern is resolved with coverage for the relevant case.

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

Évaluation

Stack technique
dart, firebase
Domaine
mobile, performance
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

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