Add pdf/image route and cache method.