asp engine sets cache-control to private

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • .nLL

    #1

    asp engine sets cache-control to private

    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: ASPSESSIONIDCSB DCRTR=FGAKMIMBB EEFCKEMGOMAOEGF ; 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.

  • Anthony Jones

    #2
    Re: asp engine sets cache-control to private

    ".nLL" <noone@here.com wrote in message
    news:iaTIj.401$ BN3.83@newsfet1 8.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: ASPSESSIONIDCSB DCRTR=FGAKMIMBB EEFCKEMGOMAOEGF ; 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.CacheC ontrol = "no-transform"


    --
    Anthony Jones - MVP ASP/ASP.NET


    Comment

    • .nLL

      #3
      Re: asp engine sets cache-control to private

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



      "Anthony Jones" <Ant@yadayadaya da.comwrote in message
      news:OwWslPdlIH A.1052@TK2MSFTN GP05.phx.gbl...
      ".nLL" <noone@here.com wrote in message
      news:iaTIj.401$ BN3.83@newsfet1 8.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: ASPSESSIONIDCSB DCRTR=FGAKMIMBB EEFCKEMGOMAOEGF ; 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.CacheC ontrol = "no-transform"
      >
      >
      --
      Anthony Jones - MVP ASP/ASP.NET
      >
      >

      Comment

      • .nLL

        #4
        Re: asp engine sets cache-control to private

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


        "Anthony Jones" <Ant@yadayadaya da.comwrote in message
        news:OwWslPdlIH A.1052@TK2MSFTN GP05.phx.gbl...
        ".nLL" <noone@here.com wrote in message
        news:iaTIj.401$ BN3.83@newsfet1 8.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: ASPSESSIONIDCSB DCRTR=FGAKMIMBB EEFCKEMGOMAOEGF ; 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.CacheC ontrol = "no-transform"
        >
        >
        --
        Anthony Jones - MVP ASP/ASP.NET
        >
        >

        Comment

        • Anthony Jones

          #5
          Re: asp engine sets cache-control to private

          ".nLL" <noone@here.com wrote in message
          news:HudJj.2708 $CD1.1384@newsf et15.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.CacheC ontrol property.

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


          --
          Anthony Jones - MVP ASP/ASP.NET


          Comment

          Working...