options: support StaticAssetPrefix

Backporting this to master for 1.8.31.3.

Fixes #705.