Can I use a 301 redirect for included external javascript files?
问题 I am trying to clean up some files on a website, one task being to collate all references to jquery to a singular file. Yes, it's a large site with multiple developers and some standards have not been followed resulting in the current situation where there are various versions of jquery referenced. What I have tried to do is create a 301 redirect for these files to point to a single version. eg: <script type="text/javascript" src="/someurl/js/jquery-1.4.4.min.js"> should end up pointing to