Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
DreamPiggy
2018-01-30 12:50:50 +0800
Commit
5b7f669bc14c3627b90f9f37edfb17e2b33e38e5
1 parent
37a062ad
Do not hard-code cache policy. Use SDWebImageDownloaderUseNSURLCache to check
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
SDWebImage/SDWebImageDownloaderOperation.m
SDWebImage/SDWebImageDownloaderOperation.m
View file @
5b7f669
...
...
@@ -353,7 +353,7 @@ didReceiveResponse:(NSURLResponse *)response
NSCachedURLResponse
*
cachedResponse
=
proposedResponse
;
if
(
self
.
request
.
cachePolicy
==
NSURLRequestReloadIgnoringLocalCacheData
)
{
if
(
!
(
self
.
options
&
SDWebImageDownloaderUseNSURLCache
)
)
{
// Prevents caching of responses
cachedResponse
=
nil
;
}
...
...
Please
register
or
login
to post a comment