xhtml - disable client cache

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top