JS files not cached by browser when app is refreshed #2037
-
Converted our enterprise Craco Teams app into Rsbuild. Good experience so far. I've managed to replicate this behavior with the following rsbuild.config.ts:
My question is, why isn't this standard behavior? I searched everywhere for documentation but couldn't find it. Did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Thanks for the feedback! The Rsbuild dev server should add ETag header to support caching. @9aoy Can you take this? you can refer to web-infra-dev/modern.js#1678 |
Beta Was this translation helpful? Give feedback.
@chenjiahan I fixed it in #2041, can you take a look?