xhtml - disable client cache

  • Thread starter Thread starter Rune
  • Start date Start date
R

Rune

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
 
I ran into the same problem when using xhtml. It was discovered that the
caching was on the server side as will as client side.
We did as you did, placing "No-Cache" meta tags in our html to adress the
client side. With the servers, it was b/c of the level of traffic the servers
were receiving, it was caching pages to keep up with demand. Look in IIS
traffic monitor settings. I think our network guy ended up increasing the
traffic bandwidth to solve the problem.
 
Back
Top