#NEWLINE# def etag_response_processor( page , request , response ) : #NEWLINE# #INDENT# '\n    Response processor to set an etag header on outgoing responses.\n    The Page.etag() method must return something valid as etag content\n    whenever you want an etag header generated.\n    ' #NEWLINE# etag = page . etag ( request ) #NEWLINE# if ( etag is not None ) : #NEWLINE# #INDENT# response [ 'ETag' ] = ( ( '"' + etag ) + '"' )