How to enforce client loads newest theme.css?
We build the theme CSS on each deploy. How can we tell clients to ignore local cache, and load the newest
/public/css/filament/admin/theme.css
?4 Replies
are you not doing the theme through vite? it should be versioned if you are, which will break the cache.
For custom themes Vite has cache-busting. For Filament assets: They should be versioned by the Filament version
No, no vite, because we only need some Tailwind customization as of now.
We solved it in our build process:
We append a query string with a placeholder that gets replaced by a timestamp on build. π
Vite is so easy to setup with Laravel that I wouldn't mind setting up a different process π