For my site, it's essential to make cache as much as possible. This is what I have:
web.header('Content-Type', ctype) web.header('Cache-Control', 'public'); web.header('max-age', 24*3600*31) #31 days So um... Cache commands work in web.py. Did you analyzed headers? Are you using a proxy? Any additional information you can attach? On Fri, Dec 2, 2011 at 8:54 AM, kjackson <kjackson....@gmail.com> wrote: > i've been trying to set the Cache-Control in the header to something > other than private, but i can't seem to get it to work. i noticed > that the documentation doesn't seem to refer to web.header, but i > found it using google, so i'm wondering if it still works. i've been > setting my code to: > > web.header('Cache-control', 'no-cache') > > but it doesn't seem to change anything. > > is this correct, or is there another way to do this? > > thanks in advance > > ken > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to webpy@googlegroups.com. > To unsubscribe from this group, send email to > webpy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- http://www.wolfhowlmedia.com -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.