views:

20

answers:

0

Hi folks,

when I hit some web resource / url / web page a number of times, i get back HTTP 200 OK with the Cache-Control data decremented. Second, third (subsequent) responses are correctly decrementing, but not returning a 304 NOT MODIFED (which I thought might be expected for caching).

example:

< HTTP/1.1 200 OK
< Date: Mon, 14 Jun 2010 11:39:15 GMT
< X-AspNet-Version: 2.0.50727
< Cache-Control: public, max-age=10, s-maxage=0
< Expires: Mon, 14 Jun 2010 11:39:20 GMT
< Last-Modified: Mon, 14 Jun 2010 11:39:10 GMT
< Vary: *
< Content-Type: application/json; charset=utf-8
< Content-Length: 270
< Connection: Close

.. and a few seconds later...

< HTTP/1.1 200 OK
< Date: Mon, 14 Jun 2010 11:39:15 GMT
< X-AspNet-Version: 2.0.50727
< Cache-Control: public, max-age=5, s-maxage=0
< Expires: Mon, 14 Jun 2010 11:39:20 GMT
< Last-Modified: Mon, 14 Jun 2010 11:39:10 GMT
< Vary: *
< Content-Type: application/json; charset=utf-8
< Content-Length: 270
< Connection: Close

So I just wanted to check -> is this OK? will the browser's assuming the pages are cached, because of the Cache-Control header .. and the data it contains?

Cheers!