asp这段代码什么意思Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" 没看明白主要是Now()-1
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 11:20:07
asp这段代码什么意思Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" 没看明白主要是Now()-1
asp这段代码什么意思
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
没看明白主要是Now()-1
asp这段代码什么意思Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" 没看明白主要是Now()-1
这一段主要功能就是让网页不缓冲,防止页面重复提交
Response.Expires = 0 '强迫缓存页到期
Response.Expiresabsolute = Now() - 1 '指定页面缓存的失效时间
'不要网页存于缓存之中
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"