Skip to content

Commit

Permalink
feat: Set no cache header when fetching datafile
Browse files Browse the repository at this point in the history
  • Loading branch information
polok committed Oct 27, 2023
1 parent 1609228 commit 10b8e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/FeaturevisorSDK/Instance+Fetch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ extension FeaturevisorInstance {

var request = URLRequest(url: datafileUrl)
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")

fetch(using: request, completion: completion)
}
Expand Down

0 comments on commit 10b8e6b

Please sign in to comment.