jschull gmail.com wrote:
> def before_finalize(this):
> cp.response.header_list['Cache-Control'] =
'no-store,
> no-cache, must-revalidate, post-check=0, pre-check=0'
> ...
> Cache-Control: no-cache
As you can see, the value you set for this header does not
reach the client. This is because you're assigning to
response.header_list when you should be assigning to
response.headers. [You're running this code in
"before finalize"; header_list doesn't get set
until "finalize" itself, so any changes you make
to header_list before finalize will be overwritten.]
Robert Brewer
System Architect
Amor Ministries
fumanchu amor.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|