Functionalify the cache-control helper; only cache public stuff