From 10b8e6bc478e5ac134de373a2bba98617ceb5615 Mon Sep 17 00:00:00 2001 From: Marcin Polak Date: Fri, 27 Oct 2023 09:07:53 +0200 Subject: [PATCH] feat: Set no cache header when fetching datafile --- Sources/FeaturevisorSDK/Instance+Fetch.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/FeaturevisorSDK/Instance+Fetch.swift b/Sources/FeaturevisorSDK/Instance+Fetch.swift index 31b835c..f562669 100644 --- a/Sources/FeaturevisorSDK/Instance+Fetch.swift +++ b/Sources/FeaturevisorSDK/Instance+Fetch.swift @@ -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) }