Prerender - caching and config

Adding cache control headers and make more configurable