Usually you want to set such headers inside the reverse proxy, e.g. in Apache using the mod_headers module:
http://httpd.apache.org/docs/current/mod/mod_headers.html
If the related code is under your control you can explicitely set headers inside a browser view using
self.request.response.setHeader(header_name, header_value)
-aj