move cache setting before static route declaration