Hi all
I'am ASP programmer and I have built a site that users can upload and
download files.All things store in a DB and everytime someone enters a
page,the application requery the Db and shows him data.
but there is aproblem:
all my pages caches before Client and i can not see fresh page.for
example if I did some activity on Monday on Wed. i Still see the old
page that was produced on Monday.I have put some header in BOth Html
And ASP files To prevent Caching:
ASP Header:
Response.AddHeader "Cache-Control","Private"
Response.AddHeader "Pragma", "no-cache"
Response.Expiresabsolute = Now() - 1
Response.CacheControl = "no-cache"
Response.CacheControl = "Private"
Response.expires= -1
Html Tags:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META http-equiv="Cache-Control" Content="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
it works fine on Client and browser will not cache but the ISP do.i
followed the headers and noticed that old pages come from ISP;so the
question is why
( Response.AddHeader "Cache-Control","Private" ) And
( <Meta http-equiv="Cache-Control" Content="no-cache"> ) don't work?
I Called the ISP Admin. but he says they refresh the pages very
quickly.
so where is the problem?
Thanks for attention
Behzad