commit/galaxy-central: dan: Fix for Safari Caching External View application 302 redirect links. See https://trello.com/c/optldnPm
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/d1d3a8f09b2b/ Changeset: d1d3a8f09b2b User: dan Date: 2014-06-03 23:03:17 Summary: Fix for Safari Caching External View application 302 redirect links. See https://trello.com/c/optldnPm Affected #: 1 file diff -r 72dea09e14ab6e87e7537b23f8c9af2cd6f50c6b -r d1d3a8f09b2bcaf23962310f5d535758823e13d7 lib/galaxy/webapps/galaxy/controllers/dataset.py --- a/lib/galaxy/webapps/galaxy/controllers/dataset.py +++ b/lib/galaxy/webapps/galaxy/controllers/dataset.py @@ -738,6 +738,8 @@ 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' ) ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org