[HTML5] Builtin HTTP server disable browsers cache
We don't want browsers to cache our temporary exports (since they will always differ).
This commit is contained in:
parent
276b831c45
commit
f8d7067bf7
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ public:
|
||||||
s += "Access-Control-Allow-Origin: *\r\n";
|
s += "Access-Control-Allow-Origin: *\r\n";
|
||||||
s += "Cross-Origin-Opener-Policy: same-origin\r\n";
|
s += "Cross-Origin-Opener-Policy: same-origin\r\n";
|
||||||
s += "Cross-Origin-Embedder-Policy: require-corp\r\n";
|
s += "Cross-Origin-Embedder-Policy: require-corp\r\n";
|
||||||
|
s += "Cache-Control: no-store, max-age=0\r\n";
|
||||||
s += "\r\n";
|
s += "\r\n";
|
||||||
CharString cs = s.utf8();
|
CharString cs = s.utf8();
|
||||||
Error err = connection->put_data((const uint8_t *)cs.get_data(), cs.size() - 1);
|
Error err = connection->put_data((const uint8_t *)cs.get_data(), cs.size() - 1);
|
||||||
|
|
Loading…
Reference in a new issue