I've tried the ?ver=478459 stuff to help prevent browsers from caching some files like CSS, Images, JavaScript. And Since I've come to realize its only so helpful. Does't appear to work every time. Example, I have to VPN into work on occasion, and for whatever reason even when changing the parameters at the end of a file like above mentioned files will remain in the cache until I clear it. I'm figuring the parameter might not be sticking for some reason cause I am running through a proxy. But, it does't always seem to be the case either.
Anyway. I am trying to figure out, if there is a way I can through htaccess provide a rewrite_rule for my js, css, img files and if the URL provided is I dont know lets say
/scripts/jquery/__ver<version number>__/filename.js
/scripts/__ver<version number>__/filename2.js
/scripts/3.0.x/__ver<version number>__/filename2.js
/styles/jquery-ui/__ver<version number>__/filename.css
/styles/__ver<version number>__/filename2.css
/img/__ver<version number>__/something.png
/img/dir/dir/dir/__ver<version number>__/something-else.png
essentially where the rewrite rule is looking for this __ver<version number>__ specifically and <version number> is either a 3 dot versioning logic or a md5 of some sort.. or something either way basically looking for _ver*_
Where when this is found, the rewrite rule would remove it and user the path without that part