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.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
The answer provided by chachan would not work across all browsers. A more complete answer could be found in this answer. Basically, you would need to set all these headers:
to tell the browser to always fetch the page from the server.
Sometimes setting the cache in meta tags is not what you are looking for and setting the http header is more convenient. This you can do quite easily in Python:
Goole has a great document on how to use the Response Class here: http://code.google.com/appengine/docs/python/tools/webapp/responseclass.html
Seems like this question isn't related with Google App Engine at all. Although, I found this:
Hope that help you.