473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

xhtml - disable client cache

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.No Cache);
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
Nov 22 '05 #1
1 2308
JP
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.
"Rune" wrote:
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.No Cache);
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

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or...
14
by: Bill Thoralina | last post by:
Hi, I created an XHTML page, but for some reason it isn't rendering on my browser. It is showing up as code. Any suggestions? Thanks.
10
by: Rob Fentress | last post by:
I am trying to develop very standards-compliant content using XHTML and CSS. I am using CSS positioning and thus need to only include my stylesheet on browsers I have tested to make sure they...
1
by: Rune | last post by:
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();
82
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a...
1
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have...
12
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering & to clients instead of &. Any help? Thanks, Alejandro.
2
by: Mantorok | last post by:
Hi Is there an easy way to disable ALL client-side caching for my entire web-site? Is there also an easy way to cause any "refreshes" and "back" actions to cause an automatic re-direct to my...
4
by: RedHair | last post by:
Development: Windows 2003 Production :Windows 2003 ASP.NET 2.0 + C# I want to disable the cache feature of all pages in dev but enable it in production environments. What's the solution? If...
3
by: Laurahn | last post by:
Hi: I don't know if it 's possible change the behavior of the IE from asp .net app. I would like the back and forward button be disabled when the users navigates in the asp app. or disable...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.