posted on Monday, July 05, 2004 6:04 AM
by
leon
Resource URL and browser cache
Recent insight. When you are using static resource on your web page, browser will use its URL as key for cache (Temporary Internet files). The catch is that this key is case sensitive.
For example:
<script language="jscript" src="scripts/Common.js"></script>
<script language="jscript" src="Scripts/Common.js"></script>
will result in two copies of Common.js in cache.
If you are experience web developer and frequently using typing instead of drag and drop techniques, you can unintentionally create links which points to the same file and differs by case only. It will cause unnecessary roundtrips to server, just to store copies of the same resource into Temporary Internet files cache.
Be careful, keep your cache clean.