Navigator cache for dotnet.wasm #14310
Replies: 3 comments 5 replies
-
Thanks for the question. Browsers are not configurable for this, though there are few options for this:
|
Beta Was this translation helpful? Give feedback.
-
Thank for reply. To enable compression, it's web server configuration or it is option to set in csproj ? I'am using dotnet serve as web server, I have to launch it with -z|--gzip or -b|--brotli option ? I'm going to try to activate the AOT profile again but I wasn't able to complete it last time. Thanks for your help |
Beta Was this translation helpful? Give feedback.
-
Hi, I am happy to share with you my Docker image. This image is built upon NGINX and incorporates the Brotli module, enabling it to host a Wasm application. The NGINX configuration used in this setup is inspired by the recommendations provided by Uno. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have an uno Wasm application, and I compile it in AOT. The build generate a "dotnet.wasm" file which is over 100MB. To improve the application loading time, I added http headers to my Web server (expires max;add_header Cache-Control "public").
It works well on .clr files, but I always have the dotnet.wasm file which is systematically downloaded from the web server.
Is it possible to force caching this file?
Thank for reply
Beta Was this translation helpful? Give feedback.
All reactions