Browser does not cache resources after restart

  1. #1

    Browser does not cache resources after restart

    This is more a general caching question.

    In my project I have pages with a couple ext.net 2.0 beta controls with asp.net-mvc3/razor

    So for these pages, from the data I gather in firebug, I think that the browser isn't caching the ext.axd resource files after it is restarted.

    This is what I see:

    Start Firefox, goto my page
    All requests show 200 OK
    If I press F5, I see all the requests as 304 Not Modified
    Now, if I restart the browser, it goes back to Http 200 responses.

    Is browser NOT caching my resources? Is there a setting or config I can employ for it to cache my resources across browser sessions?

    This is what firebug looks like:

    1. When I first start:
    Click image for larger version. 

Name:	200ok.PNG 
Views:	70 
Size:	4.9 KB 
ID:	4094

    2. When i press F5 i see:
    Click image for larger version. 

Name:	list_all.PNG 
Views:	66 
Size:	17.7 KB 
ID:	4095

    This is what an individual request looks like:
    Click image for larger version. 

Name:	request.PNG 
Views:	70 
Size:	22.7 KB 
ID:	4096

    When I restart the browser, I go back to (1). I get 200OK everywhere.

    (1) Are the resources being cached? (2) Is there something I can do to cache it?
  2. #2
    As you can notice those requests are marked as gray
    It means that browser get response from cache (without a server requesting)
    Please see
    http://stackoverflow.com/questions/6...ebug-net-panel
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Thanks, so the grey link indicates it has fetched from the cache. As the grey link also was showing 200OK next to it so i got worried.
    The cache expires after a year?
  4. #4
    Confirmed, after a year.

Similar Threads

  1. Init script in browser cache
    By moldeveloper in forum Feature Requests
    Replies: 1
    Last Post: Jun 08, 2012, 10:43 AM
  2. [CLOSED] Slow loading of image from browser cache
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 06, 2012, 12:52 PM
  3. Ext.Net-VS 2010 (Spanish): restart app
    By krlos02 in forum 1.x Help
    Replies: 3
    Last Post: Aug 16, 2011, 10:16 PM
  4. coolite.axd and cache private
    By jeybonnet in forum 1.x Help
    Replies: 5
    Last Post: Jun 22, 2009, 5:26 PM
  5. [CLOSED] Cache in Ajax
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 15, 2009, 3:02 PM

Tags for this Thread

Posting Permissions