4
votes

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:

  1. Start Firefox, goto my page
  2. All requests show 200 OK
  3. If I press F5, I see all the requests as 304 Not Modified
  4. 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:
    enter image description here

  2. When I press F5 this is what I see:

    enter image description here

    This is what an individual request looks like:

    enter image description here

    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
+1 for providing excellent debugging information.usr
Just wanted to make sure the answer to this doesn't get lost below, but this is the correct cacheing functionality. After first request, the requests are made directly to cache and each line-item is greyed out. More discussion is available at forums.ext.net/…geoffrey.mcgill
@geoffrey.mcgill If you post your comment as an answer, I will accept it.nilesh

2 Answers

2
votes

The line items on initial request are 'black' and fetched from original source. The items are then added to browser cache.

On subsequent requests, the items are pulled directly from cache, and coloured 'gray'. I guess this is just a 'feature' of Firebug.

More information is available at the following locations:

http://forums.ext.net/showthread.php?18340-Browser-does-not-cache-resources-after-restart

How to interpret grey items in Firebug Net panel?

Hope this helps

0
votes

Usually caching is controlled by web server. What's your web server and what's the configuration for the directory where your app is?