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 "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>
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?
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 "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
%>
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?