Monday, January 18, 2010
Refresh cached javascript and css in Firefox
This morning I found myself struggling to get a simple change to some javascript to show up on a web page I was authoring. I was using that old trick where you hold down shift and refresh the page which, at one time in history, I swear, forced Firefox to re-request the included javascript, css, and possibly other types of externally included files in a web page. Well, it wasn't working and before deciding it would be best to punch myself in the face and go get another cup of coffee, I googled on the topic a little. It didn't take much to find out there is a trick to this technique that, for years, either I never knew, or it is a newer "feature". To the point, you must hold down the shift key the entire time the page is loading. I had been holding shift, clicking the refresh icon, then letting go and allowing the page to load and that wasn't enough to tell firefox to re-request my javascript include file. Once I held shift the entire time the page was loading, I got my changes. Seriously, Mozilla. Seriously? I don't remember this being a problem in the past but maybe I just never noticed either. Good luck!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment