The documentation on the GetSharepointFile.aspx page mentions caching for images
For images, it supports maxsidesize, width and height parameters to control the image size. Kentico CMS cache is used for images, you can configure it in Site Manager -> Settings -> System -> Performance -> Cache images (minutes).
What caching parameters are used for non-image document files that the GetSharepointFile.aspx return?