added support for caching apps with varnish