Remove Directory and View from cacheable responses

closes #987