From 6f64d9366439c0df0628c41e98e315059fb5bf0f Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 25 Jan 2021 14:41:23 +0100 Subject: [PATCH] [HTML5] Builtin HTTP server disable browsers cache We don't want browsers to cache our temporary exports (since they will always differ). --- platform/javascript/export/export.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index 48ccc1f87a5..dd0938ee3e1 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -135,6 +135,7 @@ public: s += "Access-Control-Allow-Origin: *\r\n"; s += "Cross-Origin-Opener-Policy: same-origin\r\n"; s += "Cross-Origin-Embedder-Policy: require-corp\r\n"; + s += "Cache-Control: no-store, max-age=0\r\n"; s += "\r\n"; CharString cs = s.utf8(); Error err = connection->put_data((const uint8_t *)cs.get_data(), cs.size() - 1);