asp engine sets cache-control to private

N

.nLL

Hi, i am trying to set cache control from iis to no-transform it works fine
but when asp runs it alsoe sets it automaticly to private.

see the example below
-----------------------------------------
HTTP Status Code: HTTP/1.1 200 OK
Connection: close
Date: Wed, 02 Apr 2008 21:44:09 GMT
Server: Microsoft-IIS/6.0
Cache-Control: no-transform
Content-Length: 2523
Content-Type: application/xhtml+xml
Set-Cookie: ASPSESSIONIDCSBDCRTR=FGAKMIMBBEEFCKEMGOMAOEGF; path=/
Cache-control: private
 
A

Anthony Jones

.nLL said:
Hi, i am trying to set cache control from iis to no-transform it works fine
but when asp runs it alsoe sets it automaticly to private.

see the example below
-----------------------------------------
HTTP Status Code: HTTP/1.1 200 OK
Connection: close
Date: Wed, 02 Apr 2008 21:44:09 GMT
Server: Microsoft-IIS/6.0
Cache-Control: no-transform
Content-Length: 2523
Content-Type: application/xhtml+xml
Set-Cookie: ASPSESSIONIDCSBDCRTR=FGAKMIMBBEEFCKEMGOMAOEGF; path=/
Cache-control: private
--------------------------------------

is there any way to change this auto mode? i know i can change it in the asp
but i have 100s of pages and it wouldn't be easy to go back once its set in
asp pages.

You are using AddHeader. You should use the CacheControl property instead:-

Response.CacheControl = "no-transform"
 
N

.nLL

im looking for a way to stop asp sending private directive automaticaly.
asp.net doesn't
 
A

Anthony Jones

.nLL said:
problem is i have more than 1000 pages on more than 20 domains :)

Modify the 1000 pages to include a common ASP page.

Have that included ASP page set the Response.CacheControl property.

Its probably not that difficult to automate that task with a bit of
VBScript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top