best way to invalidate CDN Cache when updating Django app?
I am currently creating a django app, and trying to put the static files on S3 and serve it via CDN.
However, if I set the max-age to 1 year, and change the content on the static file, I have to manually invalidate CDN cache as well as browser cache, which can't be done on other user's browser.
The best way seems to be adding some kind of version number on the url (e.g. https://mydomain.com/static/file.js?v=3), but manually entering that on every file is a PITA.
Is there a way to efficiently do this, or is there a bettery way to achive similar results?