Skip to content

Conversation

@MorrisJobke
Copy link
Member

@MorrisJobke MorrisJobke commented Mar 29, 2017

cc @nextcloud/mac Please test - it's easy: open Nextcloud in Safari before and after this ;) You will notice the difference, because neither JS nor CSS is loaded before.

* Safari support gzip only if the filename does not
  end on .gz - so this renames them to .gzip

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@mention-bot
Copy link

@MorrisJobke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @juliushaertl, @rullzer and @skjnldsv to be potential reviewers.

@MorrisJobke MorrisJobke mentioned this pull request Mar 29, 2017
1 task
@rullzer
Copy link
Member

rullzer commented Mar 29, 2017

Ideally the gzip is even stripped from the respone. Because w are serving it gziped but the file is called differently ;)... But I'll look into that later. lets do it with the quick fix for now.

@MorrisJobke
Copy link
Member Author

@rullzer Its not about the URL, but somehow the FileMaker is also encoded inside of the gzip- so we would need to fix that somehow and this will get super hacky

@rullzer
Copy link
Member

rullzer commented Mar 29, 2017

Yeah it is in the content disposition header.... let me hijack this PR to fix it in a more elegant way...

@rullzer
Copy link
Member

rullzer commented Mar 29, 2017

@MorrisJobke could you check if https://github.com/nextcloud/server/tree/fix_dispositionname fixes it as well?

@MorrisJobke
Copy link
Member Author

@MorrisJobke could you check if https://github.com/nextcloud/server/tree/fix_dispositionname fixes it as well?

Doesn't work. The problem is, that gizp itself encodes the name within the gz file during creation. I also tried to set a different filename in this header. You need to set a different name during creation of the file. See http://stackoverflow.com/a/32169034/520507

@rullzer
Copy link
Member

rullzer commented Mar 29, 2017

Stupid safari. Ok lets do it like this then

@LukasReschke LukasReschke merged commit 1ee7e1c into master Mar 30, 2017
@LukasReschke LukasReschke deleted the fix-safari-gzip branch March 30, 2017 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants