首页 > 学院 > 编程设计 > 正文

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

2020-06-19 13:52:28
字体:
来源:转载
供稿:网友

如何终止浏览器的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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表