473,799 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How To Stop Caching By ISP Proxy Servers

We have written an asp.net app, which is apparently being cached by various
British ISP's, and this is recking havoc with our app, as the proxy servers
apparently are disregarding the session id within the URL (we work
cookieless), such as www.widgets.com/(asdiufya09r8)/mypage.aspx, and thus
can not identify to which user/session each page belongs.

We have tried all the textbook solutions, such as:

<%@ outputcache duration="1" varybyparam="no ne" Location="None" %>

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">

Response.Cache. SetExpires(Date Time.Now.AddMon ths(-1));

<META HTTP-EQUIV="Cache-Control" CONTENT="Public ">
<meta http-equiv="Cache-Control" content="no-store">

<meta http-equiv="Cache-Control" content="must-revalidate">

We'd be grateful for any suggestions how to absolutely block caching.

TIA,

Meron Lavie

Nov 18 '05 #1
3 6413
this is no way to force a proxy to honor your caching request, they are only
hints. if the proxyserver is ignoring the no-cache, url decoration is a
common way to invaldate the cache.

myurl.aspx?r=<r andom number>

just tack a new randowm number on every page request. (you will need to use
client code to rewrite the postback url if you are using asp.net's postback
model). a filter could also do the work.


-- bruce (sqlwork.com)

"Meron Lavie" <la***@net2visi on.net.il> wrote in message
news:#r******** ******@TK2MSFTN GP12.phx.gbl...
We have written an asp.net app, which is apparently being cached by various British ISP's, and this is recking havoc with our app, as the proxy servers apparently are disregarding the session id within the URL (we work
cookieless), such as www.widgets.com/(asdiufya09r8)/mypage.aspx, and thus
can not identify to which user/session each page belongs.

We have tried all the textbook solutions, such as:

<%@ outputcache duration="1" varybyparam="no ne" Location="None" %>

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">

Response.Cache. SetExpires(Date Time.Now.AddMon ths(-1));

<META HTTP-EQUIV="Cache-Control" CONTENT="Public ">
<meta http-equiv="Cache-Control" content="no-store">

<meta http-equiv="Cache-Control" content="must-revalidate">

We'd be grateful for any suggestions how to absolutely block caching.

TIA,

Meron Lavie

Nov 18 '05 #2
Bruce,

We have also tried passing the random number to the URL, but it didn't help.

In addition the proxy might consider a Session ID as a part of the link as a
un-cached page and bring it from the server, but unfortunately the old
cached URL(with different Session ID) comes from the proxy.

Best regards,

Mark

"bruce barker" <no***********@ safeco.com> wrote in message
news:OC******** ******@tk2msftn gp13.phx.gbl...
this is no way to force a proxy to honor your caching request, they are only hints. if the proxyserver is ignoring the no-cache, url decoration is a
common way to invaldate the cache.

myurl.aspx?r=<r andom number>

just tack a new randowm number on every page request. (you will need to use client code to rewrite the postback url if you are using asp.net's postback model). a filter could also do the work.


-- bruce (sqlwork.com)

"Meron Lavie" <la***@net2visi on.net.il> wrote in message
news:#r******** ******@TK2MSFTN GP12.phx.gbl...
We have written an asp.net app, which is apparently being cached by

various
British ISP's, and this is recking havoc with our app, as the proxy

servers
apparently are disregarding the session id within the URL (we work
cookieless), such as www.widgets.com/(asdiufya09r8)/mypage.aspx, and thus can not identify to which user/session each page belongs.

We have tried all the textbook solutions, such as:

<%@ outputcache duration="1" varybyparam="no ne" Location="None" %>

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">

Response.Cache. SetExpires(Date Time.Now.AddMon ths(-1));

<META HTTP-EQUIV="Cache-Control" CONTENT="Public ">
<meta http-equiv="Cache-Control" content="no-store">

<meta http-equiv="Cache-Control" content="must-revalidate">

We'd be grateful for any suggestions how to absolutely block caching.

TIA,

Meron Lavie


Nov 18 '05 #3
You may want to try:

<% Response.CacheC ontrol = "private" %>
"Meron Lavie" <la***@net2visi on.net.il> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
We have written an asp.net app, which is apparently being cached by various British ISP's, and this is recking havoc with our app, as the proxy servers apparently are disregarding the session id within the URL (we work
cookieless), such as www.widgets.com/(asdiufya09r8)/mypage.aspx, and thus
can not identify to which user/session each page belongs.

We have tried all the textbook solutions, such as:

<%@ outputcache duration="1" varybyparam="no ne" Location="None" %>

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">

Response.Cache. SetExpires(Date Time.Now.AddMon ths(-1));

<META HTTP-EQUIV="Cache-Control" CONTENT="Public ">
<meta http-equiv="Cache-Control" content="no-store">

<meta http-equiv="Cache-Control" content="must-revalidate">

We'd be grateful for any suggestions how to absolutely block caching.

TIA,

Meron Lavie

Nov 18 '05 #4

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

Similar topics

2
1698
by: Shabam | last post by:
I need to implement a caching mechanism for my script URLs. Instead of www.domain.com/script.cgi?id=1234 , which the browser will obviously not cache, I want the URL to be something like www.domain.com/1234 or www.domain.com/1234.htm instead. This way the browser will cache the page. I have two concerns: 1) Is this possible without rewriting the url? If so how? 2) The result page will be different for different users. Will this...
6
1831
by: ZagrebMike | last post by:
On our (intranet) web site we have an ASP page that runs a report which serves up the results in a dynamic Excel file (i.e it specifies Response.ContentType = "application/vnd.ms-excel"). This works fine for most people. One user is having a problem, though: she generates the report once, and it works fine. If she changes the parameters and runs the report again, it displays the original result. She says it "used to" work OK. ...
12
1477
by: Hoops | last post by:
Does anyone have a good java script that I can add to my page so that the same user doesn't pound my site and use all of my bandwidth? Any help would be appreciated..
10
9504
by: Behzad | last post by:
Hi all I'am ASP programmer and I have built a site that users can upload and download files.All things store in a DB and everytime someone enters a page,the application requery the Db and shows him data. but there is aproblem: all my pages caches before Client and i can not see fresh page.for example if I did some activity on Monday on Wed. i Still see the old page that was produced on Monday.I have put some header in BOth Html And ASP...
0
1178
by: Abhishek Srivastava | last post by:
Hello All, How do I completly and totally disable any kind of caching when making a HttpWebRequest. I have an application which downloads a file from the web. This file is updated on a daily basis. However, my application keeps downloading the same file again and again. When I open the same URL from my browser and hit the refresh button, I see the new version of the file.
1
1798
by: Jerad Rose | last post by:
I have been struggling with this for years, and have recently become determined to find a solution for this. If anyone has *any* ideas about this, please offer your suggestions. Basically, I am having problems with static files -- specifically CSS -- not being instantly updated when changes are made. For example, I am working on a CSS file for my site, so I am making some trial-and-error changes, applying them and then refreshing the...
3
1122
by: Siah | last post by:
I just launched my django site for a client. My problem is something is caching my db data in a bizzar way. Here are some of the behaviours I get: - I login, and every other page it makes me login again for a 5 minutes or so and then it remembers that I am logged in. - I add a record, it reflects it to the site in close to 5 minutes from now - Every other DB related change takes some time to reflect
0
1088
by: John | last post by:
We want to prevent the caching in our project, so we have the following line of code in the page load function Response.AppendHeader("Cache-Control", "no-store"); But when we are using proxy server and IE, the page is cached to the local machine. But the page is not cached with firefox and proxy server.
5
5475
by: =?Utf-8?B?TWFyaw==?= | last post by:
I'm researching what is the best way to create a generic WCF proxy wrapper that has the following requirements: 1. Remove the System.ServiceModel config section requirement for clients. We have our own configuration management that follows our application lifecycle (development/system test/production). Also, most of the proxies we build are for the middle-tier layer. 2. Create a wrapper to follow WCF Client best practices (proxy.close...
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10475
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.