Remove location.reload() and make gzip optional

Signed-off-by: Tim Smart <tim@fostle.com>