Why does FireFox 3.6.8 not cache static contents from asp.net developer server?

You need to issue Expires header to make Firefox cache the files. Otherwise, how do you think it could guess for how long does it need to cache the files?

This is the correct answer. No "Expires" header is your problem. – CantSleepAgain Aug 27 '10 at 22:02 If I create a new project, everything works fine.

The problem is it worked before without adding expires header. I am having problem with static content (gif, css). Once I move to production site, we can set the expires in IIS.

I do not think hard code the expires is a good idea. I suspect something has changed in window 7 or latest firefox. – Russel Yang Aug 30 '10 at 17:08.

Thanks everybody for helping this question. I believe I found the reason why FireFox seems very slow on window 7 box. I did not notice the slowness when I was using windows XP.

First all, Firefox will NOT cache any resource from asp. Net web developer server. This fact does not change in XP or Window 7.

When I use firebug check the resource downloading today, I noticed DNS lookup takes a couple of seconds. Then I found out for window 7 default installation, the HOSTS file under windows\system32\driver\etc does not DNS entry 127.0.0.1 localhost. By adding this line to HOSTS file.My site is as fast as before.

Also watch out for IPv6 causing this (::1) see stackoverflow. Com/questions/1726585/… – mattmanser Apr 5 at 17:26.

ASP. Net Dev Sever According to my running of Fiddler2, it caches the files, ie 304s(Not Modified) responses are done ScriptResource. Axd WebResource.

Axd Same behanviour occurs in both IE 8 and FF 3.6.8 IE8 has to be set to Automatically check for new versions of a page for this to occur. IIS Running it on IIS causes both FF and IE to cache static content. This caching is due to the webserver adding a last-modified header to the response.

You can get fiddler to listen to localhost by using localhost. Instead ( weblogs.asp.net/asptest/archive/2008/08/... ).

– Russel Yang Aug 24 '10 at 4:57 browser.cache. Check_doc_frequency has default value 3. And localhost worked fine before when I was using XP.

– Russel Yang Aug 24 '10 at 16:30 Mode 3 seems to be the same as IEs check for a new version automatically. Kb.mozillazine.Org/Browser.cache. Check_doc_frequency – mikek3332002 Aug 25 '10 at 3:55.

You can try adding one of these to your page load function - option 1 Response.ClearHeaders(); Response. AppendHeader("Cache-Control", "no-cache"); //HTTP 1.1 Response. AppendHeader("Cache-Control", "private"); // HTTP 1.1 Response.

AppendHeader("Cache-Control", "no-store"); // HTTP 1.1 Response. AppendHeader("Cache-Control", "must-revalidate"); // HTTP 1.1 Response. AppendHeader("Cache-Control", "max-stale=0"); // HTTP 1.1 Response.

AppendHeader("Cache-Control", "post-check=0"); // HTTP 1.1 Response. AppendHeader("Cache-Control", "pre-check=0"); // HTTP 1.1 Response. AppendHeader("Pragma", "no-cache"); // HTTP 1.1 Response.

AppendHeader("Keep-Alive", "timeout=3, max=993"); // HTTP 1.1 Response. AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); // HTTP 1.1 option 2 Response.Cache. SetExpires(DateTime.UtcNow.

AddMinutes(-1)) Response.Cache. SetCacheability(HttpCacheability. NoCache) Response.Cache.SetNoStore().

Russel Yang - any updates on this answer. I am using this in one of my web apps and haven't seen any issues. If you r facing any issues with this code please do let me know so that I can try out your scenario and update my application as well – Vinay B R Aug 30 '10 at 18:01 I believe this will work.

I just do not understand why Firefox did not cache the static files. IE 7 works without any problem (access the same asp. Net server).

And it worked before without adding response header. I noticed this string behavior after I switched to Window 7 and Firefox 3.6.8 – Russel Yang Aug 30 '10 at 22:06.

You could also host the page on your local IIS WebServer instead of running it in the VS Development Server. In IIS you can specify the expiration header settings to your needs.

My site works in IIS without any problem. You know the asp. Net developer server give an easier debug experience.

– Russel Yang Aug 30 '10 at 17:03.

Firefox 3.6.8 not caches static contents from asp.net developer server because (without quotes):.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions