473,382 Members | 1,445 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,382 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 2306
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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

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.