facebook / facebook/fresco

Request same url several times

Open
#2,098 6 comments 0 reactions 1 assignee Claimed by @defHLT View on GitHub
enhancement good first issue help wanted
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

I encountered a problem. When the image is downloading I close the activity, then reopen it, the image will download twice. Also, in RecyclerView when I scroll the list up and down quickly, some Images will download several times. This is a demo for this bug. https://github.com/binwin20/frescoDemo

This is issue is the same as https://github.com/facebook/fresco/issues/587, but can't reopen that issue, so open a new one.

Initialization:
```kotlin
class DemoApp:Application() {
override fun onCreate() {
super.onCreate()
Fresco.initialize(this)
}
}
```
Set Image url:
```kotlin
class SecondActivity: Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_second)
val draweeView: SimpleDraweeView = findViewById(R.id.image_view)
draweeView.setImageURI(Constant.URL)
}
}
```
Requests in Charles:
![image](https://user-images.githubusercontent.com/3467850/38794943-4f93f400-4189-11e8-977d-4743f463977e.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.