mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
Fix for Safari Caching External View application 302 redirect links. See https://trello.com/c/optldnPm
This commit is contained in:
@@ -738,6 +738,8 @@ class DatasetInterface( BaseUIController, UsesAnnotations, UsesHistoryMixin, Use
|
||||
return rval
|
||||
elif app_action == None:
|
||||
#redirect user to url generated by display link
|
||||
#Fix for Safari caching display links, which can change if the underlying dataset has an attribute change, e.g. name, metadata, etc
|
||||
trans.response.headers[ 'Cache-Control' ] = [ 'no-cache', 'max-age=0', 'no-store', 'must-revalidate' ]
|
||||
return trans.response.send_redirect( display_link.display_url() )
|
||||
else:
|
||||
msg.append( ( 'Invalid action provided: %s' % app_action, 'error' ) )
|
||||
|
||||
Reference in New Issue
Block a user