timonweb / django-tailwind

Django + Tailwind CSS = 💚
https://django-tailwind.readthedocs.io
MIT License
1.45k stars 89 forks source link

Preventing CSS caching #163

Closed Vaasref closed 1 year ago

Vaasref commented 1 year ago

It is very frequent that my browser (Chrome) cache the CSS file and I end up looking for why my style is not updating. The amount of time I spent troubleshooting that is ridiculous.

I saw that there is a version argument for the tag and that can have its uses, but a built-in caching busting feature doesn't sound far fetched given the iterative rebuild-heavy process of styling with tailwind.

Could you add an option to add the timestamp (or hash, even if that sound costlier for I think no practical benefit) of the file in the URL so it reliably reloads every time the file is rebuilt please ?