#NEWLINE# def get_http_headers( self , params ) : #NEWLINE# #INDENT# pod_path = self . get_pod_path ( params ) #NEWLINE# path = self . pod . abs_path ( pod_path ) #NEWLINE# headers = super ( StaticController , self ) . get_http_headers ( params ) #NEWLINE# self . pod . storage . update_headers ( headers , path ) #NEWLINE# modified = self . pod . storage . modified ( path ) #NEWLINE# time_obj = datetime . fromtimestamp ( modified ) . timetuple ( ) #NEWLINE# time_format = '%a, %d %b %Y %H:%M:%S GMT' #NEWLINE# headers [ 'Last-Modified' ] = time . strftime ( time_format , time_obj ) #NEWLINE# headers [ 'ETag' ] = '"{}"' . format ( headers [ 'Last-Modified' ] ) #NEWLINE# headers [ 'X-Grow-Pod-Path' ] = pod_path #NEWLINE# if self . locale : #NEWLINE# #INDENT# headers [ 'X-Grow-Locale' ] = self . locale #NEWLINE# #UNINDENT# return headers