Previous Next

Thread: Cache Problem

Last post 07-22-2008 1:30 PM by Rovastar. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 07-22-2008, 1:16 AM

    Cache Problem

    Hi, I m using this code to set expire of asp.net pages.it is workin fine in if the client datetime is same as server date time but if the clients machine's system datetime is not proper or like if clients machine datetime is 4 months back then server machines then the cache remains in the clients machine also in case of windows  XP cache does'nt removes automatically..

    Response.Buffer = True
            Dim dtExpire As Date
            dtExpire = "#January 01,1978 23:59:59#"
            Response.ExpiresAbsolute = dtExpire         'DateTime.Now.AddDays(-1D)
            Response.Expires = -15000
            Response.CacheControl = "no-cache"
            Response.Cache.SetCacheability(HttpCacheability.NoCache)
            Response.Cache.SetNoStore()

    Can any body provide me the probable solution for deleting the client cache or temprary interne files in ASP.ney

     Thanks

    Anurag Sharma

     

  • 07-22-2008, 1:30 PM In reply to

    • Rovastar
    • Top 10 Contributor
    • Joined on 03-13-2008, 2:00 PM
    • London, UK
    • Posts 758

    Re: Cache Problem

    I don't understand. Delete the cache...where the client ? the sever? Under what conditions?

    Anyway it sounds (maybe) like an asp.net coding issue so I suggest you go here.

    http://forums.asp.net/

    Most overused word in IT is 'should' as in 'That should work!?!'
Page 1 of 1 (2 items)
Page view counter