473,385 Members | 2,028 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,385 software developers and data experts.

stopping client side caching

What can be done to keep pages from caching and to hit the server each
and every time they are accessed? When our users hit their back
button on the browser we need to ensure the page is reloaded from the
server and not the browser cache.

Thanks,
John
Nov 17 '05 #1
2 1888
Here is what I use.

<meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache" />

I tried setting the expiration in IIS, but that didn't seem to work. I
don't even know what the option "Expire pages immediately" does if it does
NOT Expire pages immediately.

bill

"John Livermore" <jo************@nospm-inginix.com> wrote in message
news:kg********************************@4ax.com...
What can be done to keep pages from caching and to hit the server each
and every time they are accessed? When our users hit their back
button on the browser we need to ensure the page is reloaded from the
server and not the browser cache.

Thanks,
John

Nov 17 '05 #2
Hi,

you can add the following to a html page in the header:

<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no_cache">
<meta http-equiv="Cache-control" content="no_cache">

Of course, you can also do that programmatically in code. By adding these
headers in the Response scope.

Best regards,

Marc Höppner
NeoGeo

"John Livermore" <jo************@nospm-inginix.com> wrote in message
news:kg********************************@4ax.com...
What can be done to keep pages from caching and to hit the server each
and every time they are accessed? When our users hit their back
button on the browser we need to ensure the page is reloaded from the
server and not the browser cache.

Thanks,
John

Nov 17 '05 #3

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

Similar topics

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();
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
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();
0
by: Jonaed | last post by:
Hello, I am having a problem with caching, or at least I think it is with caching. I have a simple <%= "text " + DateTime.Now.ToString() %> in one of my aspx files (that is included thru the...
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: 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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.