import datetime
expires = datetime.datetime.now()+datetime.timedelta(0,365*24*3600)
# ex: Fri, 01 Jan 1990 00:00:00 GMT
response.headers['Expires'] = expires.strftime("%a, %d %b %Y %H:%M:%S GMT")
response.headers['Cache-Control'] = 'public,max-age:%i,must-revalidate' % (365*24*3600)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/BMxhOL_X2y8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Let's talk
Well...It doesn't seem to work on local dev_appserver, but it actually works, when deployed on appspot.com...So, anyway, problem solved...