Stupid situation with Mozilla cache



By ganton ~ October 24th, 2008. Filed under: Other.

Today, i ran into a situation which make me upset.

My environment is MS VS 2008, ASP.Net MVC, ExtJS. Web sites are debugged using internal VS 2008 IIS and Firebug.

I wrote a class in Javascript and after some tests i became to a moment when I needed to extend it. Let’s say that I need several web sites for my tests and I created a new one which contains a js file with the same name as those in the first one web site and it is located at the same relative path. I wrote a new class in the file and I started the second web site. I was debugging the code when I found that the new js file is not uploaded to the client. After a while I understood that no matter that these are two different files from different web sites the cached version is used for both. Mozilla even uses cached js file after a change made to it.

I didn’t find why that is happen but i suppose that it is somehow connected with the debugging and local host. It is strange because each site is debugged at local host but at different port. :(. When I made a change into one of both files and clear the Mozilla cache all works fine.

If you know the reason of such behaviour please comment it below. If I found the reason I’ll update the post.

Leave a Reply