Click to See Complete Forum and Search --> : cache control in Jscript


sono
03-24-2005, 06:06 AM
hi guys,

anyone know the alternative of this in Javascript. thanks

<%
Response.Buffer=True

Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
Response.End
%>

russell_g_1
03-24-2005, 06:26 AM
You just need to add brackets around the parameters of any function call, add the semi-colons on the end and change True to true.

Response.Buffer = true;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "no-cache");
Response.Expires = -1;
Response.End;

sono
03-24-2005, 06:32 AM
thanks russell, I owe you big time!