Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with buffering???

Status
Not open for further replies.

INFORMAT

Programmer
Jan 3, 2001
121
BE
Hi,

I have some ASP-pages that make a zip-file. The first page is to filter what I must zip, the second page makes the zipfile and then places an URL on the page to download the zipfile. The problem is that the page is buffering something. I placed on top of the page:

<%
Response.Buffer = false
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader &quot;pragma&quot;,&quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;,&quot;private&quot;
Response.CacheControl = &quot;no-cache&quot;
%>

and it doesn't work.

My zipfile is correct and the strange thing is that the first time I click the URL, it's a wrong zipfile(=previous made ZIP), the second time (without refreshing the page) it's correct.

What did I wrong?
 
Do I have to set some properties on my IIS to disable caching? Or isn't this a caching problem?
 
might be a cache problem....try setting Response.Expires to zero instead of 60 minutes. If this doesn't work, I would be curious....have you only tried this in IE or only in NS? If so, try it in another browser to see how it behaves. I have been having problems with my IE keeping and loading cached pages even when I set the IE browser to not cache anything and set in my code for it to not cache anything.
-Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top