Mercurial > hg > orthanc-stone
comparison Framework/Oracle/WebAssemblyOracle.cpp @ 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 | 91f827272c1f |
children | 38409549db43 |
comparison
equal
deleted
inserted
replaced
970:c3961b6cee17 | 971:bc7b249dfbd0 |
---|---|
403 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 403 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
404 } | 404 } |
405 | 405 |
406 strcpy(attr.requestMethod, method); | 406 strcpy(attr.requestMethod, method); |
407 | 407 |
408 attr.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY; | 408 attr.attributes = EMSCRIPTEN_FETCH_LOAD_TO_MEMORY | EMSCRIPTEN_FETCH_REPLACE; |
409 attr.onsuccess = FetchContext::SuccessCallback; | 409 attr.onsuccess = FetchContext::SuccessCallback; |
410 attr.onerror = FetchContext::FailureCallback; | 410 attr.onerror = FetchContext::FailureCallback; |
411 attr.timeoutMSecs = timeout_ * 1000; | 411 attr.timeoutMSecs = timeout_ * 1000; |
412 | 412 |
413 std::vector<const char*> headers; | 413 std::vector<const char*> headers; |