html / asp - Page prohibit caching method

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Foreword

Sometimes we do not need to be cached page, it can be achieved in the following manner.

html

// HTML
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<META http-equiv="expires" content="0">

asp

// ASP
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
clip_image005[1]Response.cachecontrol = "no-cache"

Guess you like

Origin blog.csdn.net/weixin_44198965/article/details/94335949