summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-01-25 14:41:23 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-01-25 20:15:57 +0100
commit6f64d9366439c0df0628c41e98e315059fb5bf0f (patch)
treec1ec6038e08409bd5467266107f3eebe722286a8 /platform
parent4e0945340739bb9d1a8fdf30dfff12a7650c86a1 (diff)
[HTML5] Builtin HTTP server disable browsers cache
We don't want browsers to cache our temporary exports (since they will always differ).
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/export/export.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp
index 48ccc1f87a..dd0938ee3e 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);