阻止Google App Engine中的页面缓存 [英] Preventing page caching in Google App Engine

查看:142
本文介绍了阻止Google App Engine中的页面缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当GAE应用程序的用户点击后退按钮时,我需要阻止他们看到页面的缓存版本 - 也就是说,我需要python get 或者 post 代码来运行该网址。

When a user of my GAE app clicks the back button, I need to prevent them from seeing a cached version of the page - that is, I need the python get or post code for that url to be run.

推荐答案

<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">

告诉浏览器始终从服务器获取页面。

to tell the browser to always fetch the page from the server.

这篇关于阻止Google App Engine中的页面缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆