adding caching to thumbnail and download routes