[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

xhtml - disable client caching

Rune

5/5/2005 9:07:00 AM

Hi

I use MMIT to render XHTML pages.

How do I disable client caching?

I've tried the following commands:

Response.CacheControl = "private";
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetMaxAge(new TimeSpan(0));
Response.Cache.SetLastModified(DateTime.Now);
Response.Cache.SetExpires(DateTime.Now);
Response.Expires = -1;
Response.AppendHeader("Pragma", "no-cache");
Response.AppendHeader("Cache-Control", "no-cache, must-revalidate");

But the xhtml code rendered contains no trace of these commands.

Please help!

Rune