Different OutputCache Client and Server

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

    Different OutputCache Client and Server

    Helo,
    I have include @OutputCache on my ASPX with location="Any"

    ¿Can I ser different cache time from client than from server?

    I would like to cache the home page of my site 3 minutes on the Server
    (so that it don't hit de DB)
    And Also i would like to cache that page un the client, 4 hours.

    I've tried puting the directive,
    <%@ OutputCache Duration="120" VaryByParam="ID Web" Location="Serve r"
    %>
    AND (Page_Load)
    Response.Expire sAbsolute = System.DateTime .Now.AddHours(4 )

    But the header get
    Expires = -1

    Any comment, will be thank
Working...