No Cache

Results 1 to 3 of 3

Thread: No Cache

  1. #1
    Join Date
    Dec 1969

    Default No Cache

    The following code prevents page caching in ASP<BR>Response.Expires = 60<BR>Response.Expiresabsolute = Now() - 1<BR>Response.AddHeader "pragma","no-cache"<BR>Response.AddHeader "cache-control","private"<BR>Response.CacheControl = "no-cache"<BR><BR>Is there a way to do this in C#,<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: No Cache

    The syntax is the same in C#, with some small differences of course, like "AddHeader" being a method should be "AddHeader(withArgs)", "Now() - 1" should be "System.DateTime.Now.Subtract(TimeSpan.FromDays(1) )"... something like that

  3. #3

    Default Answered by newbie <eop>

    He he

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts