473,498 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP appending extra cache-control header

IIS/ASP appears to be adding extra (unwanted) cache-control headers to all
requests handled by ASP and ASP.NET. This does not happen for HTM, JS, GIF,
etc requests. How can I prevent the addition of this extra header?

I've set the following HTTP Headers for the entire "Default Web Site" under
IIS (ver 5):
Cache-Control: no-cache
Pragma: no-cache

When IE sends the following request:
================================================== ================
GET /test/test.asp HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 1.0.3705)
Host: XXXXXXXX
Connection: Keep-Alive
================================================== ================
IIS returns the following response:
================================================== ================
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 03 May 2005 22:36:02 GMT
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 8
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQSAQRRBR=HGHDDFJAFMCNEOAEIIPPCPPE; path=/
Cache-control: private
================================================== ================
Here is the source of the ASP file:
================================================== ================
<%= "ASP Test" %>
================================================== ================
Jul 22 '05 #1
0 1139

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

Similar topics

1
2076
by: Jim Bancroft | last post by:
Hi, I'm porting a VB 6 app to .Net, and wanted to use an XMLDataDocument to store information that had previously been kept in XML Recordsets. Unfortunately, I'm not too familiar yet with...
6
10196
by: Access Newbie | last post by:
I'm using Access 2000 and I'm trying to create a pass-through query to append all the data from a local table to a remote table. I'm using the SQL query editor in MS Access to create the query (I...
1
1989
by: oasd | last post by:
I'm having difficulty appending data. I have an import macro (using the Transferspreadsheet function) to import data from an excel spreadsheet (located in a USB attached to the pc) to an access...
3
1898
by: MLH | last post by:
I have a query, qryAppend30DayOld260ies that attempts to append records to tblCorrespondence. When run, it can result in any of the following: appending no records, appending 1 record or appending...
7
2401
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
0
269
by: Jeff Cooper | last post by:
Hey there, I have a download page which I (finally) got to work ok with IE. But, when downloading in Netscape, it appends ".aspx" to the filename. Below is the code from the Form_Load event of...
0
1042
by: Steve E. | last post by:
Hello, Similar to the post below, can you advise what I can do so "aspx" isn't appended when saving a file in Netscape 7? Big thanks in advance for tolerating a Netscape-related question - I'm...
4
1645
by: John A Grandy | last post by:
could someone explain the following to me : Appending the literal type character I to a literal forces it to the Integer data type. Appending the identifier type character % to any identifier...
5
1919
by: raisins | last post by:
This is kind of an obscure question, and I hope someone has a clue what's going on. I've got PHP4 running on Apache 1.3 on win32, and whenever I request a URL like so: http://localhost/tag/ It...
0
968
by: catphive | last post by:
al.exe with the /version: flag seems to cause two extra null bytes to be appended to the end of the file version data in the manifest of generated dlls. Several other fields in the manifest seem to...
0
7002
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
7203
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...
1
4908
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...
0
4588
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3093
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...
0
3081
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1417
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 ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
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...

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.