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

前端 未结 5 1073
醉梦人生
醉梦人生 2021-01-05 18:59

I am working on a asp.net web site, like normal user, we use asp.net developer server during coding and testing. Today, I found the firefox not cache any static file of my s

5条回答
  •  走了就别回头了
    2021-01-05 19:50

    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 ( http://weblogs.asp.net/asptest/archive/2008/08/13/tip-on-using-fiddler-with-cassini-and-localhost.aspx ).

提交回复
热议问题