当前位置: 首页 > 图文教程 > 网络编程 > 编程10000问 > 如何终止浏览器的Cahce页面?

编程10000问
ASP问答集
asp中在JScript中使用RecordSet对象的GetRows
oblog_4.6_SQL 语句

编程10000问 中的 如何终止浏览器的Cahce页面?


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-10   浏览: 41 ::
收藏到网摘: n/a

如何终止浏览器的Cahce页面?

Function Redirect( NewURL )

If Not IsEmpty( NewURL & "" ) Then

Dim QuestionMark

QuestionMark = Instr( NewURL, "?" )

If QuestionMark = 0 Then

Response.Redirect NewURL & "?" & NoCacheURL()

Response.End

Else

Response.Redirect NEWURL & "&" & NoCacheURL()

Response.End

End If

End If

Function NoCacheURL()

On Error Resume Next

Randomize

NoCacheURL = "NoCache=" & Server.URLEncode(rnd)

End Function