Replies: 1 comment 8 replies
-
|
Remix already does this for any browser assets, including your JavaScript files and CSS files. You can safely mark those files as "immutable" with cache headers, since their filenames will change every release. Here's demonstration from one of the Remix Examples that uses Express (the Remix App Server does this for you automatically): https://github.com/remix-run/examples/blob/main/dataloader/server/index.ts#L20 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I version the chunk names in remix, so that its different for every release? During every release I want the cache to get revalidated automatically. Is something like this possible in remix?
webpack solution
Beta Was this translation helpful? Give feedback.
All reactions