> Hi everyone,
> I have a page that is being requested from an http handler in the
[quoted text clipped - 7 lines]
> context.Response.Cache.SetCacheability(HttpCacheability.Public);
> context.Response.Cache.SetValidUntilExpires(true);
Two remarks:
-- This keeps your response only fresh for 60 seconds -- but you wanted
30 minutes?
-- It's better to use SetMaxAge(), as it specifies freshness in
relative time instead of absolute as SetExpires() does (unless you're
serving to HTTP 1.0 clients, which don't understand max-age).
> Every time the page is executed, the date updates regardless. I have
> tried writing the date at the bottom of this code too, just in case.
That's weird; if I put your code in a simple web form, it is cached for
60 seconds as expected. Are you sure that the client isn't the culprit?
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de
Francis - 01 Jul 2005 23:46 GMT
Hi,
Thanks for your help. Sorry, I quickly entered that code here and put
60 seconds. I'll try it again with SetMaxAge() too.
Thanks for your help
Francis
>>Hi everyone,
>> I have a page that is being requested from an http handler in the
[quoted text clipped - 24 lines]
>
> Cheers,