How to disable page caching in web development
This article mainly introduces how to prohibit page caching in web development, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
html
Just add it to the head.
ASP Tutorial Practice
Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "No-Cache"
Php tutorial practice
Is there a simpler way to do this, which is what everyone uses in Ajax? mt= random data
Thank you for reading this article carefully. I hope that Xiaobian's "How to Ban Page Cache in Web Development" article will be helpful to everyone. At the same time, I hope that everyone will support it more. Pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!