Using GET instead of POST seems to make it work
Use query parameter for optimize calls, add refreshAll
Merge pull request #516 from liip-forks/fixing-optimize-functions

Using GET instead of POST seems to make it work