You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating a website, and the thing that takes the longest time to load is the WASM. It takes about 1 second to load on the same network. I have been looking for a way to cache the wasm file so that the site can be a bit faster at rendering the page.
Taking a look at the DevTools panel when running "cargo leptos watch" in dev mode, the wasm file is cached, but in production it is not and is redownloaded every time you go to a new page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating a website, and the thing that takes the longest time to load is the WASM. It takes about 1 second to load on the same network. I have been looking for a way to cache the wasm file so that the site can be a bit faster at rendering the page.
Taking a look at the DevTools panel when running "cargo leptos watch" in dev mode, the wasm file is cached, but in production it is not and is redownloaded every time you go to a new page.
I used Leptos Axum Starter Template and all I want to know is how to enable cache for the wasm file.
Beta Was this translation helpful? Give feedback.
All reactions