changeset 971:bc7b249dfbd0 toa2019082902

Added EMSCRIPTEN_FETCH_REPLACE flag to requests to prevent stale cache results
author Benjamin Golinvaux <bgo@osimis.io>
date Thu, 29 Aug 2019 13:11:49 +0200
parents c3961b6cee17
children fdf8b013f228
files Framework/Oracle/WebAssemblyOracle.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Oracle/WebAssemblyOracle.cpp	Thu Aug 29 10:41:02 2019 +0200
+++ b/Framework/Oracle/WebAssemblyOracle.cpp	Thu Aug 29 13:11:49 2019 +0200
@@ -405,7 +405,7 @@
 
       strcpy(attr.requestMethod, method);
 
-      attr.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY;
+      attr.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY | EMSCRIPTEN_FETCH_REPLACE;
       attr.onsuccess = FetchContext::SuccessCallback;
       attr.onerror = FetchContext::FailureCallback;
       attr.timeoutMSecs = timeout_ * 1000;