From 9b9237fbce6e8005fcda57241598181fb2b4985f Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 18 May 2017 13:01:06 +0100 Subject: [PATCH] Use INTERNET_FLAG_RESYNCHRONIZE when fetching cacheable URLs with wininet It seems this is needed for correct cache behaviour when the server doesn't add an ETags header (i.e. sending an If-Modified-Since: request). Why would we want sane behaviour by default, eh? --- nio-ie5.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nio-ie5.cc b/nio-ie5.cc index c6edacbb..7708d4c6 100644 --- a/nio-ie5.cc +++ b/nio-ie5.cc @@ -56,6 +56,8 @@ NetIO (_url) if (!cachable) { flags |= INTERNET_FLAG_NO_CACHE_WRITE; + } else { + flags |= INTERNET_FLAG_RESYNCHRONIZE; } connection = InternetOpenUrl (*internet, url, NULL, 0, flags, 0); -- 2.43.5