caching header and footer