fix caching when using client server-side