且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

防止HTML页面的缓存

更新时间:2023-12-01 22:49:46

您拥有的值可以,但 meta http-equiv 非常不可靠。你应该使用真正的HTTP头文件(具体怎么做取决于你的服务器,例如Apache的 )。

The values you have there are OK, but meta http-equiv is highly unreliable. You should be using real HTTP headers (the specifics of how you do this will depend on your server, e.g. for Apache).