Tr3*_*r3y 0 python google-app-engine caching
当我的GAE应用程序的用户单击后退按钮时,我需要阻止他们看到页面的缓存版本 - 也就是说,我需要运行该URL 的python get或post代码.
chachan提供的答案不适用于所有浏览器.在这个答案中可以找到更完整的答案.基本上,您需要设置所有这些标头:
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
Run Code Online (Sandbox Code Playgroud)
告诉浏览器始终从服务器获取页面.
| 归档时间: |
|
| 查看次数: |
2508 次 |
| 最近记录: |