List Info

Thread: cache-control




cache-control
user name
2006-02-26 16:08:46
jschullgmail.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
fumanchuamor.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-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )