fix problems with reverse proxy and caching