I use the JQuery plugin a lot in my work, and at the top of each page it gets loaded with the following script tag:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
However, sometimes I go offline, and still want to work, so I cannot load the script from this location.
While it is possible to alter all of the script tags to point to a local copy, this is annoying.
I thought that a neat solution would be to redirect any requests to http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js to localhost/home/olly/some_folder/jquery.min.js
I originally wondered about trying to play with /etc/hosts, but this can't do what I need.
Is there any other way that doesn't require installing extra software that will run all the time?
I should also note that I do not want to store a local copy of the file on the server where this website is uploaded, for various reasons.