Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I've always assumed both are acceptable on Stack Exchange, but just had three edit suggestions (all from same user), two of which just changed "optimiser" to "optimizer".
Both are fine, as far as I know. The differences are small and make no difference to intelligibility, so should not be 'fixed' in edits. If you post an example maybe we can ping the person who made/approved the edits (hope it wasn't me accidentally)