Skip to content

Commit

Permalink
Make cachePolicy an optional property
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Mar 21, 2020
1 parent b4f034f commit 5d88cfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/TinyNetworking/ResourceType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ public protocol Resource {
var cachePolicy: URLRequest.CachePolicy { get }
}

public extension Resource {
var cachePolicy: URLRequest.CachePolicy {
return .useProtocolCachePolicy
}
}

0 comments on commit 5d88cfd

Please sign in to comment.