欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-01-25 17:29:33
如何终止浏览器的cahce页面? function redirect( newurl ) if not...

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