|
From: .nLL on 2 Apr 2008 17:48 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.
From: Anthony Jones on 3 Apr 2008 17:44 ".nLL" <noone(a)here.com> wrote in message news:iaTIj.401$BN3.83(a)newsfet18.ams... > 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" -- Anthony Jones - MVP ASP/ASP.NET
From: .nLL on 3 Apr 2008 19:11 problem is i have more than 1000 pages on more than 20 domains :) "Anthony Jones" <Ant(a)yadayadayada.com> wrote in message news:OwWslPdlIHA.1052(a)TK2MSFTNGP05.phx.gbl... > ".nLL" <noone(a)here.com> wrote in message > news:iaTIj.401$BN3.83(a)newsfet18.ams... >> 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" > > > -- > Anthony Jones - MVP ASP/ASP.NET > >
From: .nLL on 3 Apr 2008 19:12 im looking for a way to stop asp sending private directive automaticaly. asp.net doesn't "Anthony Jones" <Ant(a)yadayadayada.com> wrote in message news:OwWslPdlIHA.1052(a)TK2MSFTNGP05.phx.gbl... > ".nLL" <noone(a)here.com> wrote in message > news:iaTIj.401$BN3.83(a)newsfet18.ams... >> 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" > > > -- > Anthony Jones - MVP ASP/ASP.NET > >
From: Anthony Jones on 4 Apr 2008 03:20 ".nLL" <noone(a)here.com> wrote in message news:HudJj.2708$CD1.1384(a)newsfet15.ams... > 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. -- Anthony Jones - MVP ASP/ASP.NET
|
Pages: 1 Prev: aspsmartupload error Next: custom 404 page works in IE but not firefox |