-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply a custom cache configuration for static assets #32
Comments
Sure, I should probably allow you to provide defaults. |
If you have time to provide a PR, that would be great; otherwise, I probably won't get to it until this weekend. You can always use |
Thanks kiliman, it can be done later, it's not a blocker for me. |
Although not exactly the cache setting we discussed, v0.4.5, which was just released, should fix this. Your |
Great! Thanks 👍 |
I wanted to be more aggressive on my font cache by explicitly adding this configuration:
But the server's default configuration for static files (for
build/client
) is made with amaxAge: '1h'
.remix-express-vite-plugin/packages/remix-create-express-app/src/index.ts
Lines 90 to 94 in 03028a9
So we can't replace
cache-control
for specific static files (likefonts
) with a custom configuration.Could we have the default configuration for static files after the custom configuration is applied? (I can do the PR if needed)
Thank you for this awesome project 🔥
The text was updated successfully, but these errors were encountered: