Andrey Yegorov
03/05/2025, 5:09 PMAndrey Yegorov
03/05/2025, 5:10 PMcomposeApp.uninstantiated.mjs:131 IllegalArgumentException: Invalid symbol '_'(137) at index 7
kotlinx.coroutines.error_$external_fun @ composeApp.uninstantiated.mjs:131
Andrey Yegorov
03/05/2025, 5:12 PMAndrey Yegorov
03/06/2025, 9:03 AMcomposeApp.abc123.js
f863831ad84d67a0701b.def456.wasm
dd568dbcd078c0adf7cf.ghi789.wasm
However, browsers (especially Chrome) aggressively cache assets whose filenames never change (andcomposeApp.js
). Even withf863831ad84d67a0701b.wasm
, browsers sometimes won’t reliably fetch these updates without a manual cache clear.must-revalidate
Andrey Yegorov
03/06/2025, 9:08 AMbashor
03/06/2025, 7:27 PMbashor
03/06/2025, 7:29 PM<hash>.wasm
, but it’s not case for jsbashor
03/06/2025, 7:29 PMbashor
03/06/2025, 7:31 PMfoo.js?p=<x>
changing x
will force reloading a script.Andrey Yegorov
03/07/2025, 2:52 AM<script defer type="application/javascript" src="composeApp.js?v=070325"></script>
commonWebpackConfig {
outputFileName = "composeApp.js?v=070325"
Works! @bashor thank you ❤️Andrey Yegorov
03/07/2025, 2:52 AMAndrey Yegorov
03/07/2025, 3:14 AMbashor
03/07/2025, 1:02 PM?
in a file nameAndrey Yegorov
03/07/2025, 1:03 PMbashor
03/07/2025, 1:03 PMAndrey Yegorov
03/07/2025, 1:03 PMbashor
03/07/2025, 1:05 PMcomposeApp-<timestamp>.js
or composeApp-<hash>.js
bashor
03/07/2025, 1:06 PMbashor
03/07/2025, 1:06 PMAndrey Yegorov
03/07/2025, 1:07 PM/*.html
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cache-Control: public, max-age=600, must-revalidate
/*.wasm
Content-Type: application/wasm
Cache-Control: public, max-age=31536000, immutable
/*.js
Cache-Control: public, max-age=31536000, immutable
/*.css
Cache-Control: public, max-age=31536000, immutable
Andrey Yegorov
03/07/2025, 1:08 PM