F
Filamentβ€’2mo ago
mpiet

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
awcodes
awcodesβ€’2mo ago
are you not doing the theme through vite? it should be versioned if you are, which will break the cache.
Dennis Koch
Dennis Kochβ€’2mo ago
For custom themes Vite has cache-busting. For Filament assets: They should be versioned by the Filament version
mpiet
mpietβ€’2mo ago
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. πŸ˜…
Dennis Koch
Dennis Kochβ€’2mo ago
Vite is so easy to setup with Laravel that I wouldn't mind setting up a different process πŸ˜