only serve cache folder if caching is enabled