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

网络编程 2021-07-05 11:26www.168986.cn编程入门

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

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by