Baseflow / Baseflow/flutter_cache_manager
Cache 204 - No content
- 主要言語
- Dart
- スター
- 809
- フォーク
- 510
- 平均マージ
- 6分
- マージ済み PR(30日)
- 1
説明
## 💬 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?
コントリビューションガイド
調査の方向性
リンク先の行にある lib/src/web/web_helper.dart を読み、現在キャッシュされている HTTP ステータスコードを確認してください。要求された動作が 204、404、またはその他の成功以外のレスポンスを対象とするかを明確にし、そのうえで、選択した動作によって報告された image API のケースでリクエストが繰り返されるのを防げることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- dart
- 領域
- mobile-dev, performance
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100