web interface: improve caching
web interface: redirect to the referrer url on refresh