Quote:
Originally posted by Phil Can the same thing be done in ASP using response.expires? If so, what's the difference? |
You can do the same thing by doing a:
PHP Code:
<% Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache" %>
Response.ExpiresAbsolute = #Jan 01,1990 12:00:00#
Response.Expires = -1 %>
As for the difference, with Response.Expires can be set on specific things. I've seen a lot of people us it to set a link to expire. So after so many minuites or so the link will not be cached and will need to be reretrieved.
Some say that there are problems with the Response.Expire so they us the META tags. I've never really found that to be true, but I never really tested it a whole lot.
-3e3c3e